Article View: borland.public.cppbuilder.database.multi-tier
Article #1592How do I override pure virtual in midas multi tier app
From: Majid Alkahwati
Date: Mon, 23 Aug 1999 00:00
Date: Mon, 23 Aug 1999 00:00
31 lines
1580 bytes
1580 bytes
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:
<37C0DF92.FFA2D13C@kbd.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,583b68c08b643db2,start X-Google-Attributes: gidfcd2b,public From: Majid Alkahwati <majid@kbd.com.au> Subject: How do I override pure virtual in midas multi tier app Date: 1999/08/23 Message-ID: <37C0DF92.FFA2D13C@kbd.com.au> X-Deja-AN: 516046101 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier