高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|