--------------------Configuration: aa - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp Compiling... aa.cpp MainFrm.cpp aaDoc.cpp aaView.cpp recordset.cpp e:\仿真程序\aa\recordset.h(14) : error C2504: 'CRecordset' : base class undefined e:\仿真程序\aa\recordset.h(16) : error C2629: unexpected 'class recordset (' e:\仿真程序\aa\recordset.h(16) : error C2238: unexpected token(s) preceding ';' e:\仿真程序\aa\recordset.h(32) : error C2061: syntax error : identifier 'CFieldExchange' E:\仿真程序\aa\recordset.cpp(17) : error C2653: 'CRecordset' : is not a class or namespace name E:\仿真程序\aa\recordset.cpp(17) : error C2065: 'classCRecordset' : undeclared identifier E:\仿真程序\aa\recordset.cpp(19) : error C2065: 'CDatabase' : undeclared identifier E:\仿真程序\aa\recordset.cpp(19) : error C2065: 'pdb' : undeclared identifier E:\仿真程序\aa\recordset.cpp(20) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition E:\仿真程序\aa\recordset.cpp(20) : error C2143: syntax error : missing ';' before ':' E:\仿真程序\aa\recordset.cpp(21) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition E:\仿真程序\aa\recordset.cpp(40) : error C2065: 'CFieldExchange' : undeclared identifier E:\仿真程序\aa\recordset.cpp(40) : error C2065: 'pFX' : undeclared identifier E:\仿真程序\aa\recordset.cpp(41) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition E:\仿真程序\aa\recordset.cpp(55) : error C2653: 'CRecordset' : is not a class or namespace name E:\仿真程序\aa\recordset.cpp(60) : error C2653: 'CRecordset' : is not a class or namespace name recordsetview.cpp e:\仿真程序\aa\recordset.h(14) : error C2504: 'CRecordset' : base class undefined e:\仿真程序\aa\recordset.h(16) : error C2629: unexpected 'class recordset (' e:\仿真程序\aa\recordset.h(16) : error C2238: unexpected token(s) preceding ';' e:\仿真程序\aa\recordset.h(32) : error C2061: syntax error : identifier 'CFieldExchange' e:\仿真程序\aa\recordsetview.h(16) : error C2504: 'CRecordView' : base class undefined e:\仿真程序\aa\recordsetview.h(41) : error C2143: syntax error : missing ';' before '*' e:\仿真程序\aa\recordsetview.h(41) : error C2433: 'CRecordset' : 'virtual' not permitted on data declarations e:\仿真程序\aa\recordsetview.h(41) : error C2501: 'CRecordset' : missing storage-class or type specifiers e:\仿真程序\aa\recordsetview.h(41) : error C2501: 'OnGetRecordset' : missing storage-class or type specifiers E:\仿真程序\aa\recordsetview.cpp(17) : error C2440: 'return' : cannot convert from 'class recordsetview *' to 'class CObject *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast E:\仿真程序\aa\recordsetview.cpp(17) : error C2653: 'CRecordView' : is not a class or namespace name E:\仿真程序\aa\recordsetview.cpp(17) : error C2065: 'classCRecordView' : undeclared identifier E:\仿真程序\aa\recordsetview.cpp(21) : error C2614: 'recordsetview' : illegal member initialization: 'CRecordView' is not a base or member E:\仿真程序\aa\recordsetview.cpp(35) : error C2653: 'CRecordView' : is not a class or namespace name E:\仿真程序\aa\recordsetview.cpp(42) : error C2653: 'CRecordView' : is not a class or namespace name E:\仿真程序\aa\recordsetview.cpp(54) : error C2653: 'CRecordView' : is not a class or namespace name E:\仿真程序\aa\recordsetview.cpp(59) : error C2653: 'CRecordView' : is not a class or namespace name E:\仿真程序\aa\recordsetview.cpp(66) : error C2143: syntax error : missing ';' before '*' E:\仿真程序\aa\recordsetview.cpp(66) : error C2501: 'CRecordset' : missing storage-class or type specifiers E:\仿真程序\aa\recordsetview.cpp(67) : error C2501: 'OnGetRecordset' : missing storage-class or type specifiers E:\仿真程序\aa\recordsetview.cpp(69) : error C2440: 'return' : cannot convert from 'class recordset *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast E:\仿真程序\aa\recordsetview.cpp(71) : error C2664: '__thiscall recordset::recordset(const class recordset &)' : cannot convert parameter 1 from 'const int' to 'const class recordset &' Reason: cannot convert from 'const int' to 'const class recordset' No constructor could take the source type, or constructor overload resolution was ambiguous E:\仿真程序\aa\recordsetview.cpp(72) : error C2039: 'Open' : is not a member of 'recordset' e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset' E:\仿真程序\aa\recordsetview.cpp(74) : error C2440: 'return' : cannot convert from 'class recordset *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast E:\仿真程序\aa\recordsetview.cpp(80) : error C2039: 'IsKindOf' : is not a member of 'recordset' e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset' E:\仿真程序\aa\recordsetview.cpp(86) : error C2065: 'BeginWaitCursor' : undeclared identifier E:\仿真程序\aa\recordsetview.cpp(88) : error C2653: 'CRecordView' : is not a class or namespace name E:\仿真程序\aa\recordsetview.cpp(89) : error C2039: 'IsOpen' : is not a member of 'recordset' e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset' E:\仿真程序\aa\recordsetview.cpp(91) : error C2039: 'm_pDatabase' : is not a member of 'recordset' e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset' E:\仿真程序\aa\recordsetview.cpp(91) : error C2227: left of '->GetDatabaseName' must point to class/struct/union E:\仿真程序\aa\recordsetview.cpp(92) : error C2039: 'GetTableName' : is not a member of 'recordset' e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset' E:\仿真程序\aa\recordsetview.cpp(95) : error C2065: 'GetDocument' : undeclared identifier E:\仿真程序\aa\recordsetview.cpp(95) : error C2227: left of '->SetTitle' must point to class/struct/union E:\仿真程序\aa\recordsetview.cpp(97) : error C2065: 'EndWaitCursor' : undeclared identifier Generating Code... Error executing cl.exe.aa.exe - 50 error(s), 0 warning(s)
http://www.vckbase.com/document/listdoc.asp?mclsid=11&sclsid=1105
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
aa.cpp
MainFrm.cpp
aaDoc.cpp
aaView.cpp
recordset.cpp
e:\仿真程序\aa\recordset.h(14) : error C2504: 'CRecordset' : base class undefined
e:\仿真程序\aa\recordset.h(16) : error C2629: unexpected 'class recordset ('
e:\仿真程序\aa\recordset.h(16) : error C2238: unexpected token(s) preceding ';'
e:\仿真程序\aa\recordset.h(32) : error C2061: syntax error : identifier 'CFieldExchange'
E:\仿真程序\aa\recordset.cpp(17) : error C2653: 'CRecordset' : is not a class or namespace name
E:\仿真程序\aa\recordset.cpp(17) : error C2065: 'classCRecordset' : undeclared identifier
E:\仿真程序\aa\recordset.cpp(19) : error C2065: 'CDatabase' : undeclared identifier
E:\仿真程序\aa\recordset.cpp(19) : error C2065: 'pdb' : undeclared identifier
E:\仿真程序\aa\recordset.cpp(20) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
E:\仿真程序\aa\recordset.cpp(20) : error C2143: syntax error : missing ';' before ':'
E:\仿真程序\aa\recordset.cpp(21) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
E:\仿真程序\aa\recordset.cpp(40) : error C2065: 'CFieldExchange' : undeclared identifier
E:\仿真程序\aa\recordset.cpp(40) : error C2065: 'pFX' : undeclared identifier
E:\仿真程序\aa\recordset.cpp(41) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
E:\仿真程序\aa\recordset.cpp(55) : error C2653: 'CRecordset' : is not a class or namespace name
E:\仿真程序\aa\recordset.cpp(60) : error C2653: 'CRecordset' : is not a class or namespace name
recordsetview.cpp
e:\仿真程序\aa\recordset.h(14) : error C2504: 'CRecordset' : base class undefined
e:\仿真程序\aa\recordset.h(16) : error C2629: unexpected 'class recordset ('
e:\仿真程序\aa\recordset.h(16) : error C2238: unexpected token(s) preceding ';'
e:\仿真程序\aa\recordset.h(32) : error C2061: syntax error : identifier 'CFieldExchange'
e:\仿真程序\aa\recordsetview.h(16) : error C2504: 'CRecordView' : base class undefined
e:\仿真程序\aa\recordsetview.h(41) : error C2143: syntax error : missing ';' before '*'
e:\仿真程序\aa\recordsetview.h(41) : error C2433: 'CRecordset' : 'virtual' not permitted on data declarations
e:\仿真程序\aa\recordsetview.h(41) : error C2501: 'CRecordset' : missing storage-class or type specifiers
e:\仿真程序\aa\recordsetview.h(41) : error C2501: 'OnGetRecordset' : missing storage-class or type specifiers
E:\仿真程序\aa\recordsetview.cpp(17) : error C2440: 'return' : cannot convert from 'class recordsetview *' to 'class CObject *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\仿真程序\aa\recordsetview.cpp(17) : error C2653: 'CRecordView' : is not a class or namespace name
E:\仿真程序\aa\recordsetview.cpp(17) : error C2065: 'classCRecordView' : undeclared identifier
E:\仿真程序\aa\recordsetview.cpp(21) : error C2614: 'recordsetview' : illegal member initialization: 'CRecordView' is not a base or member
E:\仿真程序\aa\recordsetview.cpp(35) : error C2653: 'CRecordView' : is not a class or namespace name
E:\仿真程序\aa\recordsetview.cpp(42) : error C2653: 'CRecordView' : is not a class or namespace name
E:\仿真程序\aa\recordsetview.cpp(54) : error C2653: 'CRecordView' : is not a class or namespace name
E:\仿真程序\aa\recordsetview.cpp(59) : error C2653: 'CRecordView' : is not a class or namespace name
E:\仿真程序\aa\recordsetview.cpp(66) : error C2143: syntax error : missing ';' before '*'
E:\仿真程序\aa\recordsetview.cpp(66) : error C2501: 'CRecordset' : missing storage-class or type specifiers
E:\仿真程序\aa\recordsetview.cpp(67) : error C2501: 'OnGetRecordset' : missing storage-class or type specifiers
E:\仿真程序\aa\recordsetview.cpp(69) : error C2440: 'return' : cannot convert from 'class recordset *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\仿真程序\aa\recordsetview.cpp(71) : error C2664: '__thiscall recordset::recordset(const class recordset &)' : cannot convert parameter 1 from 'const int' to 'const class recordset &'
Reason: cannot convert from 'const int' to 'const class recordset'
No constructor could take the source type, or constructor overload resolution was ambiguous
E:\仿真程序\aa\recordsetview.cpp(72) : error C2039: 'Open' : is not a member of 'recordset'
e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset'
E:\仿真程序\aa\recordsetview.cpp(74) : error C2440: 'return' : cannot convert from 'class recordset *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\仿真程序\aa\recordsetview.cpp(80) : error C2039: 'IsKindOf' : is not a member of 'recordset'
e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset'
E:\仿真程序\aa\recordsetview.cpp(86) : error C2065: 'BeginWaitCursor' : undeclared identifier
E:\仿真程序\aa\recordsetview.cpp(88) : error C2653: 'CRecordView' : is not a class or namespace name
E:\仿真程序\aa\recordsetview.cpp(89) : error C2039: 'IsOpen' : is not a member of 'recordset'
e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset'
E:\仿真程序\aa\recordsetview.cpp(91) : error C2039: 'm_pDatabase' : is not a member of 'recordset'
e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset'
E:\仿真程序\aa\recordsetview.cpp(91) : error C2227: left of '->GetDatabaseName' must point to class/struct/union
E:\仿真程序\aa\recordsetview.cpp(92) : error C2039: 'GetTableName' : is not a member of 'recordset'
e:\仿真程序\aa\recordset.h(13) : see declaration of 'recordset'
E:\仿真程序\aa\recordsetview.cpp(95) : error C2065: 'GetDocument' : undeclared identifier
E:\仿真程序\aa\recordsetview.cpp(95) : error C2227: left of '->SetTitle' must point to class/struct/union
E:\仿真程序\aa\recordsetview.cpp(97) : error C2065: 'EndWaitCursor' : undeclared identifier
Generating Code...
Error executing cl.exe.aa.exe - 50 error(s), 0 warning(s)
为什么不用ADO?
ado 会比较好用