几何尺寸与公差论坛------致力于产品几何量公差标准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, 12:02 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】header filename confliction

header filename confliction
header filename confliction
hi all.
i noticed that several header filenames provided by odt v3 are conflicting against objectarx headers.
i'm setup my visual studio environment to include both directories of objectarx and odt v3 in this order.
in some cases, i want to include header files from both objectarx and odt v3. but since some of them has quitely same filename, so i cannot include odt's one. this problem cannot be resolved by swapping their directory order (on visual studio setting).
currently, conflicting header files are:
dbbody.h
dbcurve.h
dbdate.h
dbfcf.h
dbfiler.h
dbfilter.h
dbframe.h
dbgroup.h
dbhatch.h
dbimage.h
dbindex.h
dblayout.h
dbmline.h
dbmtext.h
dbplotsettings.h
dbray.h
dbregion.h
dbspline.h
dbsymutl.h
dbxline.h
ge/gecone.h
ge/gefileio.h
ge/gefiler.h
ge/gegbl.h
ge/geline2d.h
ge/geline3d.h
ge/geplane.h
ge/geray2d.h
ge/geray3d.h
ge/gesphere.h
ge/getol.h
ge/getorus.h
gs/gs.h
rxdefs.h
rxobject.h
summinfo.h
is it possible such that all odt provided files (not only headers, but also libs... etc) never conflict objectarx's one?
or, since currently all odt headers stay directly under 'include/', so instead, move all to 'include/odt/' is possible?
if it's possible, then i can write as follows:
#include <someheader.h> // ...from objectarx.
#include <odt/someheader.h> // ...from odt v3.
please consider about this situation.
thank you.

can't you use the headers in such way:
#include <someheader.h> // ...from objectarx.
#include <odt/include/someheader.h> // ...from odt v3.
sergey slezkin

> #include <odt/include/someheader.h>
hmm...
it's just an idea, but...
such coding is not portable, isn't it?
i want my program be portable!
since we cannot expect odt installed location, it will works only his(her) environment.
for example, in someone's environment, it may be:
#include <odt30/include/someheader.h>
or others may:
#include <opendwg/include/someheader.h>
this cannot be resolved by header file search order.
although, if all headers are placed at include/odt/, then, by adding following two directories as compiler's header file search paths:
include/
include/odt/
already existing odt code should work okay, and my problem is also resolved.
how is this?
thank you.

i don't like neither renaming header files no having one more folder level like "include/odt"
what if we rename opendwg "include" folder to "odtinclude"?
so you will write in your program:
#include <someheader.h> // ...from objectarx.
#include <odtinclude/someheader.h> // ...from odt v3.
having search paths like:
d:/objectarx/include
d:/opendwg or d:/odt
sergey slezkin

thank you for suggestion.
i think that solution's seemed not so smart, and i cannot see why you don't want to do that.
but, at the same time, i know such situation (need to include both arx and odt headers) may be rare case. perhaps, only me? in the planet. so...
i will take that way.
thank you for your valuable time.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】dd2.1.0 cant support wchar filename,it leads to a crash yang686526 DirectDWG 0 2009-05-04 07:06 PM
【转帖】哪位高手指点一下下边lisp的怎么用 yang686526 数据库ObjectDBX 0 2009-04-28 12:13 PM
哪位高手指点一下下边lisp的怎么用 yang686526 ObjectARX(AutoLISP) 0 2009-04-26 06:19 PM
【转帖】pdf export page selec yang686526 SolidWorks二次开发 0 2009-04-13 01:19 PM
【转帖】new to api need help yang686526 SolidWorks二次开发 0 2009-04-12 09:53 PM


所有的时间均为北京时间。 现在的时间是 08:47 AM.


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