首页上一页 1 下一页尾页 3 条记录 1/1页
Visual C++项目开发全程实录P403页,在主窗体类中的OnInitDlg方法中添加代码后,不能成功组建,显示错误
发表在C语言图书答疑
2010-05-17
是否精华
是
否
版块置顶:
是
否
Visual C++项目开发全程实录P403页,在主窗体类中的OnInitDlg方法中添加代码后,不能成功组建,显示错误信息为:--------------------Configuration: test - Win32 Debug--------------------
Compiling...
testDlg.cpp
d:\test\test\debug\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\test\test\testDlg.cpp(119) : error C2065: 'CExamInfo' : undeclared identifier
D:\test\test\testDlg.cpp(119) : error C2146: syntax error : missing ';' before identifier 'infodlg'
D:\test\test\testDlg.cpp(119) : error C2065: 'infodlg' : undeclared identifier
D:\test\test\testDlg.cpp(122) : error C2228: left of '.DoModal' must have class/struct/union type
D:\test\test\testDlg.cpp(124) : error C2228: left of '.Subject' must have class/struct/union type
D:\test\test\testDlg.cpp(126) : error C2065: 'theApp' : undeclared identifier
D:\test\test\testDlg.cpp(126) : error C2228: left of '.studentid' must have class/struct/union type
D:\test\test\testDlg.cpp(129) : error C2065: 'TimeStr' : undeclared identifier
D:\test\test\testDlg.cpp(129) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CString' (or there is no acceptable conversion)
D:\test\test\testDlg.cpp(130) : error C2110: cannot add two pointers
D:\test\test\testDlg.cpp(133) : error C2228: left of '.Question' must have class/struct/union type
D:\test\test\testDlg.cpp(136) : error C2065: 'testnum' : undeclared identifier
D:\test\test\testDlg.cpp(137) : error C2065: 'm_TestID' : undeclared identifier
D:\test\test\testDlg.cpp(137) : error C2228: left of '.SetWindowTextA' must have class/struct/union type
D:\test\test\testDlg.cpp(138) : error C2065: 'Sid' : undeclared identifier
D:\test\test\testDlg.cpp(138) : error C2228: left of '.Sid' must have class/struct/union type
D:\test\test\testDlg.cpp(144) : error C2065: 'm_Time' : undeclared identifier
D:\test\test\testDlg.cpp(144) : error C2228: left of '.SetWindowTextA' must have class/struct/union type
执行 cl.exe 时出错.
test.exe - 1 error(s), 0 warning(s)
Compiling...
testDlg.cpp
d:\test\test\debug\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\test\test\testDlg.cpp(119) : error C2065: 'CExamInfo' : undeclared identifier
D:\test\test\testDlg.cpp(119) : error C2146: syntax error : missing ';' before identifier 'infodlg'
D:\test\test\testDlg.cpp(119) : error C2065: 'infodlg' : undeclared identifier
D:\test\test\testDlg.cpp(122) : error C2228: left of '.DoModal' must have class/struct/union type
D:\test\test\testDlg.cpp(124) : error C2228: left of '.Subject' must have class/struct/union type
D:\test\test\testDlg.cpp(126) : error C2065: 'theApp' : undeclared identifier
D:\test\test\testDlg.cpp(126) : error C2228: left of '.studentid' must have class/struct/union type
D:\test\test\testDlg.cpp(129) : error C2065: 'TimeStr' : undeclared identifier
D:\test\test\testDlg.cpp(129) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CString' (or there is no acceptable conversion)
D:\test\test\testDlg.cpp(130) : error C2110: cannot add two pointers
D:\test\test\testDlg.cpp(133) : error C2228: left of '.Question' must have class/struct/union type
D:\test\test\testDlg.cpp(136) : error C2065: 'testnum' : undeclared identifier
D:\test\test\testDlg.cpp(137) : error C2065: 'm_TestID' : undeclared identifier
D:\test\test\testDlg.cpp(137) : error C2228: left of '.SetWindowTextA' must have class/struct/union type
D:\test\test\testDlg.cpp(138) : error C2065: 'Sid' : undeclared identifier
D:\test\test\testDlg.cpp(138) : error C2228: left of '.Sid' must have class/struct/union type
D:\test\test\testDlg.cpp(144) : error C2065: 'm_Time' : undeclared identifier
D:\test\test\testDlg.cpp(144) : error C2228: left of '.SetWindowTextA' must have class/struct/union type
执行 cl.exe 时出错.
test.exe - 1 error(s), 0 warning(s)