我的使用MFC的dll文件无法正确生成对话框,请教问题出在哪里,下面是我的函数代码:
DlgSrchJE* pDialog;
void Load_Dlg()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
//pDialog initialized to NULL in the constructor of CMyWnd class.
pDialog = new DlgSrchJE;
//Check if new succeeded and a valid pointer to a dialog object is created.
if(pDialog != NULL)
{
BOOL ret = pDialog->Create(IDD_DlgSrchJE,this);
if(!ret) //Create failed.
AfxMessageBox("Error creating Dialog");
pDialog->ShowWindow(SW_SHOW);
}
else
AfxMessageBox("Error Creating Dialog Object");
}
哪位大侠手头有生成无模式对话框的例子,请给小弟一份完整的代码参考一下,不胜感激!
::?