BEGIN_MESSAGE_MAP(CMydllApp, CWinApp)
//{{AFX_MSG_MAP(CMydllApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMydllApp construction
CMydllApp::CMydllApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMydllApp object
CMydllApp theApp;
CDLSG sta;
int CMydllApp::ExitInstance()
{
// TODO: Add your specialized code here and/or call the base class
return CWinApp::ExitInstance();
}
BOOL CMydllApp::InitInstance()
{
// TODO: Add your specialized code here and/or call the base class
AFX_MANAGE_STATE(AfxGetStaticModuleState());
sta.Create(IDD_EIDST);
sta.ShowWindow(SW_SHOW);
//sta->ShowWindow(SW_HIDE);
return TRUE;
//return CWinApp::InitInstance();
}
这是我DLL程序!当这个DLL被初始化的时候我创建一个窗口而且显示它!可不知道为什么窗口只一闪就没有!我的窗口类对象是在全局定义的!他的生命周期应该不会和这个函数一起结束!实在郁闷!求各位老大帮帮忙!在线等``这是VC的!
BEGIN_MESSAGE_MAP(CMydllApp, CWinApp)
//{{AFX_MSG_MAP(CMydllApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMydllApp construction
CMydllApp::CMydllApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMydllApp object