
19 Apr
2010
19 Apr
'10
4:11 a.m.
Hi,
On Sun, Apr 18, 2010 at 2:18 PM, DDGG
Hello everyone!
I have a MFC application that using boost::thread, it runs well. Now I wrapped it to a MFC regular dll, but I get a assertion error when I using this dll.
// (In my another MFC dialog application) void AFXAPI AfxCoreInitModule() { ASSERT(AfxGetModuleState() != AfxGetAppModuleState()); // assertion error // the return value of AfxGetModuleState() and AfxGetAppModuleState() are both not-empty, // but they are different. ... }
Any advice? thanks!
Try adding at the begining of each exported function this line AFX_MANAGE_STATE(AfxGetStaticModuleState()); Cheers,