创建非模态对话框时的棘手问题??!在线等哦
--------Configuration: fifth - Win32 Debug--------------------
Compiling...
fifthDlg.cpp
G:\the process of studying\2.2 vc++\4.7\fifth\fifthDlg.cpp(63) : error C2511: 'CFifthDlg::CFifthDlg' : overloaded member function 'void (class CWnd *)' not found in 'CFifthDlg'
g:\the process of studying\2.2 vc++\4.7\fifth\fifthdlg.h(14) : see declaration of 'CFifthDlg'
G:\the process of studying\2.2 vc++\4.7\fifth\fifthDlg.cpp(191) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
这是我添加了代码出现的问题,我并没有修改相关的类名啊!!????????????
void CFifthDlg::OnOK()
{
// TODO: Add extra validation here
if((pdlg!=NULL)&&IsWindow(pdlg->m_hWnd))
{
AfxMessageBox("The dialogue is already created!");
pdlg->ShowWindow(SW_SHOW);
}
else
{
pdlg=new dlg1(NULL);
}
if(!::IsWindow(pdlg->m_hWnd))
{
pdlg->Create(IDD_DIALOG2,NULL);
pdlg->ShowWindow(SW_SHOW);
}
CDialog::OnOK();
}
[解决办法]
你多踩踩吧
[解决办法]