我要在主对话框启动之前,希望能先用一个对话框(设置), 是登录框BOOL CMyApp::InitInstance()
{
...
CDlgLogin dlg; //登陆窗口,已定义类
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
}调试出现错误
error C2065: 'CDlgLogin' : undeclared identifier
我已经定义类了 怎么还说没有呢
{
...
CDlgLogin dlg; //登陆窗口,已定义类
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
}调试出现错误
error C2065: 'CDlgLogin' : undeclared identifier
我已经定义类了 怎么还说没有呢
http://topic.csdn.net/t/20020729/19/908921.html#