我在做一个考勤系统的程序,但是利用从MFC中的CRecordset类继承后,编译程序后,出现了编译错误,错误如下
UserRecordest.cpp
e:\case\考勤系统\userrecordest.h(14) : error C2504: 'CRecordset' : base class undefined
e:\case\考勤系统\userrecordest.h(16) : error C2629: unexpected 'class CUserRecordest ('
e:\case\考勤系统\userrecordest.h(16) : error C2238: unexpected token(s) preceding ';'
e:\case\考勤系统\userrecordest.h(33) : error C2061: syntax error : identifier 'CFieldExchange'
E:\case\考勤系统\UserRecordest.cpp(18) : error C2653: 'CRecordset' : is not a class or namespace name
E:\case\考勤系统\UserRecordest.cpp(18) : error C2065: 'classCRecordset' : undeclared identifier
E:\case\考勤系统\UserRecordest.cpp(20) : error C2065: 'CDatabase' : undeclared identifier
E:\case\考勤系统\UserRecordest.cpp(20) : error C2065: 'pdb' : undeclared identifier
E:\case\考勤系统\UserRecordest.cpp(21) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
E:\case\考勤系统\UserRecordest.cpp(21) : error C2143: syntax error : missing ';' before ':'
E:\case\考勤系统\UserRecordest.cpp(22) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
E:\case\考勤系统\UserRecordest.cpp(43) : error C2065: 'CFieldExchange' : undeclared identifier
E:\case\考勤系统\UserRecordest.cpp(43) : error C2065: 'pFX' : undeclared identifier
E:\case\考勤系统\UserRecordest.cpp(44) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
E:\case\考勤系统\UserRecordest.cpp(59) : error C2653: 'CRecordset' : is not a class or namespace name
E:\case\考勤系统\UserRecordest.cpp(64) : error C2653: 'CRecordset' : is not a class or namespace name
Error executing cl.exe.请问一下,我应该怎么调它?