Dlg: : OnInitDialog don't perform, but DoModal succeeded (in a dialog box), this is the DLL project, think impassability, please advise!
CodePudding user response:
MFC DLL export functions start adding AFX_MANAGE_STATE try
Extern "C" BOOL PASCAL EXPORT ExportedFunction ()
{
AFX_MANAGE_STATE (AfxGetStaticModuleState ());
.
}
CodePudding user response: