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