我创建了一个MFC DLL,然后在这个项目中创建了一个对话框资源和对话框类,这个对话框我能在下面函数调用:
BOOL CMyApp::InitInstance()
{
CWinApp::InitInstance();
CMyDialog dlg;
CWnd* m_pMainWnd;
m_pMainWnd = &dlg;
dlg.DoModal(); return TRUE;
}
如果我想在Myfunc()函数调用就不行了,请问在Myfunc应该怎么调用?
BOOL CMyApp::InitInstance()
{
CWinApp::InitInstance();
CMyDialog dlg;
CWnd* m_pMainWnd;
m_pMainWnd = &dlg;
dlg.DoModal(); return TRUE;
}
如果我想在Myfunc()函数调用就不行了,请问在Myfunc应该怎么调用?
AFX_MANAGE_STATE(AfxGetStaticModuleState());