CodePudding user response:
Void CTestStaticLibDlg: : OnBnClickedButton1 (){
CStaticLib DLG.
DLG. DoModal ();
}
I call so in MFC application, it is not the pop-up dialog box I do! O great god solve!!!!!!!!!!
CodePudding user response:
Internal packaging dynamic library is written so, should be your internal implementation problemsAFX_MANAGE_STATE (: : AfxGetStaticModuleState ());
CXXXXDlg _dlg (CWnd: : FromHandle (AfxGetMainWnd () - & gt; GetSafeHwnd ()));
_dlg. DoModal ();
return TRUE;
CodePudding user response:
In the call DoModal () before calling AFX_MANAGE_STATE (AfxGetStaticModuleState ());