What to replace obsolete CComModule

  • Thread starter Thread starter SueDong
  • Start date Start date
S

SueDong

I have a VC6 application and would like to convert it
to .Net.

The application have a few ATL projects that have a
standard global CComModule _Module in header file and
following code in cpp file:

BOOL CEditorWndCtlApp::InitInstance()
{
_Module.Init(ObjectMap, m_hInstance,
&LIBID_EDITORWNDCTLLib);
return CWinApp::InitInstance();
}

int CEditorWndCtlApp::ExitInstance()
{
_Module.Term();
return CWinApp::ExitInstance();
}

and those DllCanUnloadNow, DllGetClassObject,
DllRegisterServer, DllUnregisterServer.

However ATL7 distributed CComModule functinality to a
couple of modules like CAtlModule, CAtlWinModule etc. I
tried to replace my CComModule by CAtlDllModuleT, but I
lost all my control's window functionality. I even tried
multiple inheritance of CAtlDllModuleT and CAtlWinModule,
I still got a windowless control.

What should I do? Please help
 
Back
Top