void CMyDlg::OnOK()
{
// TODO: Add extra validation here
YesDlg yesorno;
yesorno.DoModal();
CDialog::OnOK();C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(177) : error C2065: 'YesDlg' : undeclared identifier
C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(177) : error C2146: syntax error : missing ';' before identifier 'yesorno'
C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(177) : error C2065: 'yesorno' : undeclared identifier
C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(178) : error C2228: left of '.DoModal' must have class/struct/union type
执行 cl.exe 时出错.
{
// TODO: Add extra validation here
YesDlg yesorno;
yesorno.DoModal();
CDialog::OnOK();C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(177) : error C2065: 'YesDlg' : undeclared identifier
C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(177) : error C2146: syntax error : missing ';' before identifier 'yesorno'
C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(177) : error C2065: 'yesorno' : undeclared identifier
C:\Program Files\VC++\MyProjects\作业\作业Dlg.cpp(178) : error C2228: left of '.DoModal' must have class/struct/union type
执行 cl.exe 时出错.
解决方案 »
- 请问这段代码该怎么写
- 急,程序重起后就不能自动播放mp3了...
- VC用DOM在内存中生成XML,如何和本地的Schema文件关联起来并校验???
- 基于dialog的程序,让根菜单变灰的控制问题
- C++中break与contiune的区别
- 我从网上一下一个工程的源码/但在工程设置选项中只有Win32 Release版本的/请问怎么把Win32 Debug版本的设置出来
- 界面上如何在onok函数中分辨输入焦点的位置?在线等
- 一个如何去关掉另一个线程
- COM+里事务MTS的疑惑??
- 十万火急,连续流畅显示多幅4096*2048的JPRG格式的路面图像~可能涉及线程问题
- 问个问题,如何关闭无模式对话框?
- 新手求助!
作业Dlg.obj : error LNK2001: unresolved external symbol "public: __thiscall YesDlg::YesDlg(class CWnd *)" (??0YesDlg@@QAE@PAVCWnd@@@Z)
Debug/作业.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
在打开的窗口里,找到YesDlg.h和YesDlg.cpp,添加到工程中。呵呵。