
Using an MFC Extension DLL from an MFC ActiveX Control
I am attempting to "wrap" an
MFC Dialog application into an MFC
ActiveX Control. The MFC application uses some MFC Extension DLLs.
I have managed to get my ActiveX control project to compile and link
and before you ask, yes I have read KB article Q154126 and am using
the two-step initialization.
I am having trouble trying to register the control. I find using the
de{*filter*} that if I have in my control's main .cpp file:
extern "C" void WINAPI InitMyExtDLL()
then regsvr32 does not even make it into my control's InitInstance().
However, if I do not compile in my dialog app files and remove this
line ( thus not initializing the Extension DLL ) then regsvr32 works
as normal and I can debug through InitIntance and DllRegisterServer().
Does anyone have any ideas? Thanks.