🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Majid Alkahwati Mon, 23 Aug 1999 00:00
How do I override pure virtual in midas multi tier app
#1592
Author: Majid Alkahwati
Date: Mon, 23 Aug 1999 00:00
31 lines
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???
Re: How do I override pure virtual in midas multi tier app
#1594
Author: PIQUOT J�r�me
Date: Mon, 23 Aug 1999 00:00
48 lines
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???
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads