初学VC,请教大家一个问题,我用的MFC AppWizard (exe) 建立一个应用程序,名字教Address,生成的类有CAboutDlg,CAdressApp,CAdressDoc,CAdressView,CMainFrame, 数据库我在“管理工具”中ODBC已经配置好了,于是新建一个CPersonSet 类并且继承了CRecordSet 类,选择了数据库中的person表,结果我点编译出现了错误如下大家帮忙看以下,小弟在此感谢不尽:ompiling...
PersonSet.cpp
c:\documents and settings\administrator\桌面\adress\adress\personset.h(14) : error C2504: 'CRecordset' : base class undefined
c:\documents and settings\administrator\桌面\adress\adress\personset.h(16) : error C2629: unexpected 'class CPersonSet ('
c:\documents and settings\administrator\桌面\adress\adress\personset.h(16) : error C2238: unexpected token(s) preceding ';'
c:\documents and settings\administrator\桌面\adress\adress\personset.h(40) : error C2061: syntax error : identifier 'CFieldExchange'
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(17) : error C2653: 'CRecordset' : is not a class or namespace name
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(17) : error C2065: 'classCRecordset' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(19) : error C2065: 'CDatabase' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(19) : error C2065: 'pdb' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(20) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(20) : error C2143: syntax error : missing ';' before ':'
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(21) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(49) : error C2065: 'CFieldExchange' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(49) : error C2065: 'pFX' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(50) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(72) : error C2653: 'CRecordset' : is not a class or namespace name
C:\Documents and Settings\Administrator\桌面\Adress\Adress\PersonSet.cpp(77) : error C2653: 'CRecordset' : is not a class or namespace name
Error executing cl.exe.
PersonSet.obj - 16 error(s), 0 warning(s)
在线等ing
[此贴子已经被作者于2006-3-11 8:50:48编辑过]