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

two questions about dwgdirect 2.3.0
two questions about dwgdirect 2.3.0
1. when i convert acad2002 dwg file to acad 2007's file,then covert back,
all text contain chinese character has change to strange sign(in odamfcappdll.exe).for example:
"k83+008庞家窑中桥全桥工程数量表"==>"k83+008\m+0c5d3\m+0bcd2\m +0d2a4\m+0d6d0\m+0c7c5\m+0c8ab\m+0c7c5\m+0b9a4\m+0 b3cc\m+0cafd\m+0c1bf\m+0b1ed".but this file can show normally in autocad 2002/2004/2007,then if using odamfcappdll.exe export it to dwf or pdf,the file seems massed.
2. i have writed a dwg converter using wtl,it is a dll,it static link all need module into it. when dll initial, i call:
:drxdynamiclinker()->loadapp(dd_t("recomputedimblock")).release();
:drxdynamiclinker()->loadapp(dd_t("exfieldevaluator")).release();
:drxinitwinntcrypt();
(like odwriteex does),then my dll crashed.i didn't know why? i have tested,
any one of above calls can result in dll crash.
anyone can tell me why? thanks.
last edited by lab_zj; 2nd april 2007 at 03:49 amfff">.
1. can you attach a file?
2. did you call odrx_init_static_module_map() ?
did you declare module entry point, and name mapping. like
odrx_declare_static_module_entry_point(...)
odrx_define_static_application(...)
?
what kind of exception do you get? (access violation or oderror?)
what is the call stack?
vladimir
last edited by vkalinin; 2nd april 2007 at 11:10 amfff">.
thanks for reply!
1. sorry,i can't give you a attachment because of my network,but you can produce it: using odamfcappdll.exe open a dwg that contain chinese character save as r21 file,then re-save as r15 file with same name(overwrite), then restart odamfcappdll.exe and open last saved file,you should see the problem(the text entity massed).
2. i do as follows:
(1).odrx_declare_static_module_entry_point(modeler module);
odrx_declare_static_module_entry_point(odrecompute dimblockmodule);
(2).odrx_begin_static_module_map()
odrx_define_static_application(dd_t("modelergeomet ry"), modelermodule)
odrx_define_static_application(dd_t("recomputedimb lock"), odrecomputedimblockmodule)
odrx_end_static_module_map()
(3).odrx_init_static_module_map();
//:drxdynamiclinker()->loadapp(dd_t("recomputedimblock"));//crashed by this call.
odinitialize(&g_svcs);
3. exception:
this exception can't catched by try-catch(...),it report:"microsoft visual c++ runtime library: runtime error!\nprogram:...\nthis application has requested the runtime to terminate it in an unusal way....".it sames not a oderror.
this should be right? does this problem cause by dll-kind hostapplication?
last edited by lab_zj; 2nd april 2007 at 06:51 pmfff">.
2. the same with debug build?
why can't you see the call stack?
vladimir
quote:
originally posted by lab_zj
1. sorry,i can't give you a attachment because of my network,but you can produce it: using odamfcappdll.exe open a dwg that contain chinese character save as r21 file,then re-save as r15 file with same name(overwrite), then restart odamfcappdll.exe and open last saved file,you should see the problem(the text entity massed).
we are not able to reproduce problem. could you send your sample file by email . what system codepage is set on your computer ("syscodepage" command in acad for example)?
best regards,
sergey z.
thanks for reply!
1. i will download debug version of dwgdirect to debug.currently,i use release version(static lib with mt mode).
2. i have send to you dwg file with problem. my codepage is "ansi_936".
thanks.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】questions about dwgdirect classes yang686526 DirectDWG 0 2009-05-07 12:16 PM
【转帖】problems with dll project using dwgdirect 2 yang686526 DirectDWG 0 2009-05-06 11:52 PM
【转帖】numerous link errors on macosx 9xcode 2.50 yang686526 DirectDWG 0 2009-05-06 06:43 PM
【转帖】dwgdirect 1.14.01 now available yang686526 DirectDWG 0 2009-05-05 08:18 AM
【转帖】compile against dwgdirect 9solaris0 equest for member `oper yang686526 DirectDWG 0 2009-05-04 05:58 PM


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


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