小孩旅行包:VC高手进

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/03 14:50:41
--------------------Configuration: db2 - Win32 Debug--------------------
Compiling...
MainFrm.cpp
E:\Works\vc++\db2\MainFrm.cpp(51) : error C2248: 'OnCreate' : cannot access protected member declared in class 'CFrameWnd'
e:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3278) : see declaration of 'OnCreate'
E:\Works\vc++\db2\MainFrm.cpp(51) : error C2352: 'CFrameWnd::OnCreate' : illegal call of non-static member function
e:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3278) : see declaration of 'OnCreate'
E:\Works\vc++\db2\MainFrm.cpp(84) : error C2065: 'CNRS_ALIGN_ANY' : undeclared identifier
db2View.cpp
E:\Works\vc++\db2\db2View.cpp(120) : error C2065: 'CMainFrame' : undeclared identifier
E:\Works\vc++\db2\db2View.cpp(120) : error C2065: 'pm' : undeclared identifier
E:\Works\vc++\db2\db2View.cpp(120) : error C2059: syntax error : ')'
E:\Works\vc++\db2\db2View.cpp(121) : error C2227: left of '->m_dlgbar' must point to class/struct/union
E:\Works\vc++\db2\db2View.cpp(121) : error C2228: left of '.GetDlgItem' must have class/struct/union type
E:\Works\vc++\db2\db2View.cpp(139) : error C2084: function 'void __thiscall CDb2View::OnCleartext(void)' already has a body
E:\Works\vc++\db2\db2View.cpp(145) : error C2084: function 'void __thiscall CDb2View::OnSelchangeCombo1(void)' already has a body
MyDlgBar.cpp
E:\Works\vc++\db2\MyDlgBar.cpp(29) : error C2248: 'DoDataExchange' : cannot access protected member declared in class 'CWnd'
e:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2414) : see declaration of 'DoDataExchange'
E:\Works\vc++\db2\MyDlgBar.cpp(29) : error C2352: 'CWnd::DoDataExchange' : illegal call of non-static member function
e:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2414) : see declaration of 'DoDataExchange'
Generating Code...
Compiling...
db2.cpp
Generating Code...
Error executing cl.exe.

db2.exe - 12 error(s), 0 warning(s)

都是照着书上打的程序
怎么会有这么多错误?
疯了疯了

楼主是编了一个MFC程序吧~~

你有没有按照MFC Wizard自动创建一个工程?

能否把代码拿出来