我想在我的应用程序里增加数据库功能,用class wizard,new class名为CSet,"Base class"为CDaoRecordSet,"ok"编译,不知何故提示如下错误!
CDaoRecordset的基类如何定义啊?
请高手指点!
d:\dao\set.h(14) : error C2504: 'CDaoRecordset' : base class undefined
d:\dao\set.h(16) : error C2629: unexpected 'class CSet ('
d:\dao\set.h(16) : error C2238: unexpected token(s) preceding ';'
d:\dao\set.h(34) : error C2061: syntax error : identifier 'CDaoFieldExchange'
D:\\dao\Set.cpp(17) : error C2653: 'CDaoRecordset' : is not a class or namespace name
D:\\dao\Set.cpp(17) : error C2065: 'classCDaoRecordset' : undeclared identifier
D:\\dao\Set.cpp(19) : error C2065: 'CDaoDatabase' : undeclared identifier
D:\\dao\Set.cpp(19) : error C2065: 'pdb' : undeclared identifier
D:\\dao\Set.cpp(20) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
D:\dao\Set.cpp(20) : error C2143: syntax error : missing ';' before ':'
D:\dao\Set.cpp(21) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
D:\dao\Set.cpp(44) : error C2065: 'CDaoFieldExchange' : undeclared identifier
D:\dao\Set.cpp(44) : error C2065: 'pFX' : undeclared identifier
D:\dao\Set.cpp(45) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
D:\dao\Set.cpp(62) : error C2653: 'CDaoRecordset' : is not a class or namespace name
D:\dao\Set.cpp(67) : error C2653: 'CDaoRecordset' : is not a class or namespace name
Error executing cl.exe.