1.我首先通过Insert 生成了一个Dialog对话框,ID为设置为IDD_Lianxi;
2.然后我通过ClassWizard添加了一个新类与生成的Dialog对话框对应,类名设为ClianxiDlg,最后我在主对话框中设置按纽,添加成员函数,并添加语句为; ClianxiDlg MyAbout;
         MyAbout.DoModal();
即想显示新的对话框;
但每次编译运行提示错误为:
D:\STUDY\U\Cho1501\Cho1501Dlg.cpp(214) : error C2065: 'ClianxiDlg' : undeclared identifier
D:\STUDY\U\Cho1501\Cho1501Dlg.cpp(214) : error C2146: syntax error : missing ';' before identifier 'MyAbout'
D:\STUDY\U\Cho1501\Cho1501Dlg.cpp(214) : error C2065: 'MyAbout' : undeclared identifier
D:\STUDY\U\Cho1501\Cho1501Dlg.cpp(215) : error C2228: left of '.DoModal' must have class/struct/union type
Error executing cl.exe.
请问是什么原因啊?谢谢Cho1501.exe - 4 error(s), 0 warning(s)