几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-05-05, 09:49 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】error while including dbpolyline.h

error while including "dbpolyline.h"

error while including "dbpolyline.h"
hi all,
i've developed an mfc application for viewing and processing dwg files using dwgdirect 1.11.01.
for retrieve the coordinates for acdbpolyline entity, i included the header file 'dbpolyline.h' for getting the oddbpolylineptr, it show the following error.
ex\db2dpolyline.h(60) : error c2555: 'oddb2dpolyline::setcolor' : overriding virtual function differs from 'oddbentity::setcolor' only by return type or calling convention
ex\dbentity.h(49) : see declaration of 'oddbentity'
ex\db2dpolyline.h(69) : error c2555: 'oddb2dpolyline::setcolorindex' : overriding virtual function differs from 'oddbentity::setcolorindex' only by return type or calling convention
ex\dbentity.h(49) : see declaration of 'oddbentity'
ex\db2dpolyline.h(71) : error c2555: 'oddb2dpolyline::settransparency' : overriding virtual function differs from 'oddbentity::settransparency' only by return type or calling convention
ex\dbentity.h(49) : see declaration of 'oddbentity'
can anyone say the solution for this.
thanks & regards,
rajesh parameswaran.

rajuinnet
# 17th august 2004, 01:32 am

softdev join date: jun 2002
location: st'petersburg, russia
posts: 522

do you include odacommon.h as first dd include file to your cpp-file?
sincerely yours,
george udov

george udov
# 17th august 2004, 03:46 am

registered user join date: jul 2004
location: india
posts: 82

even i included 'odacommon.h', its still showing the same errors.
g:\rajesh\vc++\graphics engine\june\test1\ex\db2dpolyline.h(60) : error c2555: 'oddb2dpolyline::setcolor' : overriding virtual function differs from 'oddbentity::setcolor' only by return type or calling convention
g:\rajesh\vc++\graphics engine\june\test1\ex\dbentity.h(49) : see declaration of 'oddbentity'
g:\rajesh\vc++\graphics engine\june\test1\ex\db2dpolyline.h(69) : error c2555: 'oddb2dpolyline::setcolorindex' : overriding virtual function differs from 'oddbentity::setcolorindex' only by return type or calling convention
g:\rajesh\vc++\graphics engine\june\test1\ex\dbentity.h(49) : see declaration of 'oddbentity'
g:\rajesh\vc++\graphics engine\june\test1\ex\db2dpolyline.h(71) : error c2555: 'oddb2dpolyline::settransparency' : overriding virtual function differs from 'oddbentity::settransparency' only by return type or calling convention
g:\rajesh\vc++\graphics engine\june\test1\ex\dbentity.h(49) : see declaration of 'oddbentity'
generating code...
error executing cl.exe.
thanks & regards,
rajesh parameswaran

rajuinnet
# 17th august 2004, 03:55 am

softdev join date: jun 2002
location: st'petersburg, russia
posts: 522

strange...
which compiler do you use?
i think, msvc, then which version?
sincerely yours,
george udov

george udov
# 17th august 2004, 05:18 am

registered user join date: jul 2004
location: india
posts: 82

yes, i'm using microsoft visual c++ 6.0 compiler...

rajuinnet
# 17th august 2004, 05:40 am

moderator join date: mar 2002
posts: 2,994
it seems you are using mixed headers from 1.10 and 1.11.
oddbentity.h from one version and db2dpolyline.h from another.
between 1.10 and 1.11 return value of listed functions changed from void to odresult.
sergey slezkin

sslezkin
# 17th august 2004, 05:40 am

softdev join date: jun 2002
location: st'petersburg, russia
posts: 522

lib or dll configuration of dd? debug or release? are precompiled headers enabled? did you try rebuild all?
sincerely yours,
george udov

george udov
# 17th august 2004, 05:41 am

moderator join date: mar 2002
posts: 2,994
or maybe you need to clean up precompiled headers. try rebuild all.
sergey slezkin

sslezkin
# 18th august 2004, 10:37 pm

registered user join date: jul 2004
location: india
posts: 82


hi george & sergey,
yes, problem was solved. you are right. this is because of the header file version conflict. i used both 1.11.0 and 1.11.01. now the problem was solved.
thank you !!!!!!!!!
thanks & regards,
rajesh parameswaran

rajuinnet

none
? | ?
thread tools



display modes
linear mode


search this thread

rate this thread
excellent
good
average
bad
terrible

posting rules
you may post new threads
you may post replies
you may post attachments
you may edit your posts
is on
are on
code is off
html code is off
forum jump
user control panel private messages subscriptions who's online search forums forums home general topics news questions and remarks business issues industry commentary general software issues documentation issues future directions dwg libraries dwgdirect.net dwgdirect, c++ version dwgdirectx, activex version adtdirect/c3ddirect opendwg toolkit/viewkit dgn libraries dgndirect, c++ version (2.x+) dgndirect libraries (legacy 0.99xx)
all times are gmt -7. the time now is 01:00 amfff">.
- - -
copyright ?2000 - 2009, jelsoft enterprises ltd.
copyright 1998-2008 open design alliance inc.

do you include odacommon.h as first dd include file to your cpp-file?
sincerely yours,
george udov

even i included 'odacommon.h', its still showing the same errors.
g:\rajesh\vc++\graphics engine\june\test1\ex\db2dpolyline.h(60) : error c2555: 'oddb2dpolyline::setcolor' : overriding virtual function differs from 'oddbentity::setcolor' only by return type or calling convention
g:\rajesh\vc++\graphics engine\june\test1\ex\dbentity.h(49) : see declaration of 'oddbentity'
g:\rajesh\vc++\graphics engine\june\test1\ex\db2dpolyline.h(69) : error c2555: 'oddb2dpolyline::setcolorindex' : overriding virtual function differs from 'oddbentity::setcolorindex' only by return type or calling convention
g:\rajesh\vc++\graphics engine\june\test1\ex\dbentity.h(49) : see declaration of 'oddbentity'
g:\rajesh\vc++\graphics engine\june\test1\ex\db2dpolyline.h(71) : error c2555: 'oddb2dpolyline::settransparency' : overriding virtual function differs from 'oddbentity::settransparency' only by return type or calling convention
g:\rajesh\vc++\graphics engine\june\test1\ex\dbentity.h(49) : see declaration of 'oddbentity'
generating code...
error executing cl.exe.
thanks & regards,
rajesh parameswaran

strange...
which compiler do you use?
i think, msvc, then which version?
sincerely yours,
george udov

yes, i'm using microsoft visual c++ 6.0 compiler...
it seems you are using mixed headers from 1.10 and 1.11.
oddbentity.h from one version and db2dpolyline.h from another.
between 1.10 and 1.11 return value of listed functions changed from void to odresult.
sergey slezkin

lib or dll configuration of dd? debug or release? are precompiled headers enabled? did you try rebuild all?
sincerely yours,
george udov
or maybe you need to clean up precompiled headers. try rebuild all.
sergey slezkin


hi george & sergey,
yes, problem was solved. you are right. this is because of the header file version conflict. i used both 1.11.0 and 1.11.01. now the problem was solved.
thank you !!!!!!!!!
thanks & regards,
rajesh parameswaran
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
IP file including auto features yogy PC-DMIS 0 2007-08-05 10:10 PM


所有的时间均为北京时间。 现在的时间是 01:19 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多