标题:小弟在往工程中加入两个类,进行编绎时,出现了奇怪的情况?还请高手赐教...
只看楼主
wgd123pl
Rank: 2
来 自:湖北
等 级:论坛游民
帖 子:23
专家分:24
注 册:2008-8-16
结帖率:100%
已结贴  问题点数:20 回复次数:5 
小弟在往工程中加入两个类,进行编绎时,出现了奇怪的情况?还请高手赐教...
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
搜索更多相关主题的帖子: microsoft 
2011-02-09 16:33
wgd123pl
Rank: 2
来 自:湖北
等 级:论坛游民
帖 子:23
专家分:24
注 册:2008-8-16
得分:0 
有人在吗.我自己弄了三四天,都找不出来什么原因.望各大侠多多相助.小弟先谢过了....
2011-02-09 17:11
红色警戒
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:贵宾
威 望:19
帖 子:444
专家分:2967
注 册:2005-11-20
得分:14 
明显变量没定义

2011-02-10 14:10
wgd123pl
Rank: 2
来 自:湖北
等 级:论坛游民
帖 子:23
专家分:24
注 册:2008-8-16
得分:0 
都定义过了.怎么说没定义
2011-02-13 16:00
jkjk001002
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-2-19
得分:0 
你是不是没定写主程序就编译了?
2011-02-19 19:17
cacker
该用户已被删除
得分:0 
提示: 作者被禁止或删除 内容自动屏蔽
2011-02-20 21:53



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-331951-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.052136 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved