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 CEditorWndCtlAp p::InitInstance ()
{
_Module.Init(Ob jectMap, m_hInstance,
&LIBID_EDITORWN DCTLLib);
return CWinApp::InitIn stance();
}
int CEditorWndCtlAp p::ExitInstance ()
{
_Module.Term();
return CWinApp::ExitIn stance();
}
and those DllCanUnloadNow , DllGetClassObje ct,
DllRegisterServ er, DllUnregisterSe rver.
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
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 CEditorWndCtlAp p::InitInstance ()
{
_Module.Init(Ob jectMap, m_hInstance,
&LIBID_EDITORWN DCTLLib);
return CWinApp::InitIn stance();
}
int CEditorWndCtlAp p::ExitInstance ()
{
_Module.Term();
return CWinApp::ExitIn stance();
}
and those DllCanUnloadNow , DllGetClassObje ct,
DllRegisterServ er, DllUnregisterSe rver.
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