在一个MFC多文档应用程序中加了一个校验对话框,我验证成功后,改对话框消除,需要进入原来的进程,不知道为什么进不去了?
这个是调用对话框的源码:
CLicenseDlg dlg;
m_pMainWnd = &dlg;
CLicenseDlg * log = new CLicenseDlg;
if (log->DoModal()!= IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
//str=GetMacAddress();
return FALSE;
}
else
if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}