Article View: borland.public.cppbuilder.database.multi-tier
Article #1594Re: How do I override pure virtual in midas multi tier app
From: PIQUOT J�r�me
Date: Mon, 23 Aug 1999 00:00
Date: Mon, 23 Aug 1999 00:00
48 lines
2141 bytes
2141 bytes
this problem comes from BCB4 patch see previous Michael thread
--
-----------------------------------------------------------------
PIQUOT J�r�me
A. WOLFF SA
6, rue de la Gare
67120 ERNOLSHEIM/BRUCHE
FRANCE
e-mail: wolff@media-net.fr
http://www.media-net.fr/wolff
-----------------------------------------------------------------
Majid Alkahwati <majid@kbd.com.au> a �crit dans le message :
37C0DF92.FFA2D13C@kbd.com.au...
> Hi, I'm creating a server app using midas,
> I used the RemoteDataModule wizard,
> every thing was fine util I exported my
> dataset, then I got Compile errors:
> [C++ Error] atlcom.h(162): E2352 Cannot create instance of abstract
> class 'CComObject<TDataModuleTestImpl>'.
> [C++ Error] atlcom.h(162): E2353 Class 'CComObject<TDataModuleTestImpl>'
> is abstract because of '__stdcall
> IDataModuleTest::get_Query1(IProviderPtr *) = 0'.
>
> I looked at borlands's examples and tried to do what they did
> i.e. I stuck this method into the class TDataModuleTestImpl:
> STDMETHOD(get_Query1(IProvider** Value)); // in the class declaration //
> *.h file
> and:
> STDMETHODIMP TDataModuleTestImpl::get_Query1(IProvider** Value)
> {
> try
> {
> _di_IProvider IProv = m_DataModule->Query1->Provider;
> IProv->AddRef();
> *Value = IProv;
> }
> catch(Exception &e)
> {
> return Error(e.Message.c_str(), IID_IDataModuleTest_BCB);
> }
> return S_OK;
> };
> INTo the *.cpp file, but I still get this error??
> can anyone help me please???
>
>
Technical Details
Message-ID:
<7pr2cl$fj94@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37C0DF92.FFA2D13C@kbd.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fcd2b,583b68c08b643db2 X-Google-Attributes: gidfcd2b,public From: "PIQUOT J�r�me" <wolff@media-net.fr> Subject: Re: How do I override pure virtual in midas multi tier app Date: 1999/08/23 Message-ID: <7pr2cl$fj94@forums.borland.com> X-Deja-AN: 516094372 References: <37C0DF92.FFA2D13C@kbd.com.au> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: WOLFF SA X-MSMail-Priority: Normal Reply-To: "PIQUOT J�r�me" <wolff@media-net.fr> Newsgroups: borland.public.cppbuilder.database.multi-tier