The following line in dllinit.cpp line 587 (AfxCoreInitModule()) is causing
the first assertion failiure:
ASSERT(AfxGetModuleState() != AfxGetAppModuleState());
If I ignore this the following line in dllmodul.cpp line 135
(InternalDllMain()) is causing the second assertion failure:
VERIFY(AfxSetModuleState(AfxGetThreadState()->m_pPrevModuleState) ==
&afxModuleState);
Is this something that can be prevented?
Thanks,
Drew
"Drew" <d...@dam.com> wrote in message
news:uuf3kn2f...@TK2MSFTNGP05.phx.gbl...
Are you using MFC DLL or static linking? Are you sure you have defined
_USRDLL, etc. appropriately?
-- David
I am using MFC DLL. I didn't have _USRDLL defined but it didn't make any
difference. I did (and do) have _AFXDLL and _WINDLL defined. Am I maybe
mixing and matching these incorrectly?
Thanks,
Drew
What I would do is use AppWizard to create a new dummy ActiveX control and
make sure you don't have the same assertion problem with this. Then copy
your code into this new project.
-- David