小弟在往工程中加入两个类,进行编绎时,出现了奇怪的情况?还请高手赐教...
ompiling...QuickEdit.cpp
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'CdbDBEngine' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'pEngine' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'CdbWorkspace' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'pWorkspace' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'CdbDatabase' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'pDatabase' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2182: 'SetJet' : illegal use of type 'void'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2491: 'SetJet' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2078: too many initializers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2501: 'CdbDatabase' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2370: 'CdbDatabase' : redefinition; different storage class
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2501: 'GetDatabase' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(98) : error C2061: syntax error : identifier 'CdbException'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(192) : error C2146: syntax error : missing ';' before identifier 'm_cRecordset'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(192) : error C2501: 'CdbRecordset' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(192) : error C2501: 'm_cRecordset' : missing storage-class or type specifiers
QuickList.cpp
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'CdbDBEngine' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'pEngine' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'CdbWorkspace' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'pWorkspace' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'CdbDatabase' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2065: 'pDatabase' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2182: 'SetJet' : illegal use of type 'void'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2491: 'SetJet' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\dbsets.h(68) : error C2078: too many initializers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2501: 'CdbDatabase' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2370: 'CdbDatabase' : redefinition; different storage class
c:\program files\microsoft visual studio\vc98\include\dbsets.h(69) : error C2501: 'GetDatabase' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(98) : error C2061: syntax error : identifier 'CdbException'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(192) : error C2146: syntax error : missing ';' before identifier 'm_cRecordset'
c:\program files\microsoft visual studio\vc98\include\dbsets.h(192) : error C2501: 'CdbRecordset' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\dbsets.h(192) : error C2501: 'm_cRecordset' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1060) : error C2039: 'm_bXPTheme' : is not a member of 'CTheme'
c:\program files\microsoft visual studio\vc98\include\theme.h(40) : see declaration of 'CTheme'
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1063) : error C2065: 'BP_CHECKBOX' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1064) : error C2065: 'CBS_UNCHECKEDNORMAL' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1068) : error C2065: 'BP_RADIOBUTTON' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1071) : error C2065: 'RBS_CHECKEDNORMAL' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1073) : error C2065: 'RBS_UNCHECKEDNORMAL' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1077) : error C2065: 'BP_PUSHBUTTON' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1080) : error C2065: 'PBS_PRESSED' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1082) : error C2065: 'PBS_NORMAL' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1089) : error C2065: 'CBS_CHECKEDNORMAL' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\MyListCtrl\QuickList.cpp(1094) : error C2039: 'DrawThemeBackground' : is not a member of 'CTheme'
c:\program files\microsoft visual studio\vc98\include\theme.h(40) : see declaration of 'CTheme'
Generating Code...
Error executing cl.exe.
MyListCtrl.exe - 45 error(s), 2 warning(s)
我是新手,学习别人的,在加入QuickList.h,QuickList.cpp,QuickEdit.h,QuickEdit.cpp这两个类,源源来源于:
http://www.里的CQuickList