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

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】singledoc Display Error (http://www.dimcax.com/hust/showthread.php?t=18601)

yang686526 2009-05-07 04:00 PM

【转帖】singledoc Display Error
 
singledoc: display error
singledoc: display error
hello
i want to create an application that will load and display the dwg/dxf file. i got help from the singledoc application.
but if i try to open the sample dwg files from autocad2005 then the singledoc application shown some assertion problem. the assertion is coming from the following position
/* load the wingdi module */
odgsmoduleptr pgs = :: odrxdynamiclinker()->loadmodule("wingdi.gs");
/* create a new odgsdevice object, and associate */
/* with the wingdi gsdevice */
m_pdevice = pgs->createdevice();
and the sample file into the autocadlt2000 loads and display properly,but the chinese letters are shown "???". please check the attached dwg file.
i am new to use this dwgdirect 2.6.1 library ,so if i made any mistake please forgive me and let me know how can i fix these problems?
thanks
tauhid
attached files
1. which 2005 sample do you open, and what kind of assert do you see?
2. to display chinese characters in this file you need to override oddbhostappservices::findfile
(see e.g. codamfcappapp::findfile in ./examples/win/odamfcapp/odamfcapp.cpp), because there are non-default shx fonts used in this drawing.
vladimir
quote:
originally posted by vkalinin
1. which 2005 sample do you open, and what kind of assert do you see?
2. to display chinese characters in this file you need to override oddbhostappservices::findfile
(see e.g. codamfcappapp::findfile in ./examples/win/odamfcapp/odamfcapp.cpp), because there are non-default shx fonts used in this drawing.
thanks vladimir
2. to display chinese characters in this file you need to override oddbhostappservices::findfile
(see e.g. codamfcappapp::findfile in ./examples/win/odamfcapp/odamfcapp.cpp), because there are non-default shx fonts used in this drawing.fff">
displaying chinese characters works properly.
1. which 2005 sample do you open, and what kind of assert do you see?
the sample files available into "sample" folder into the autocad 2005 installed directory.
first i have open the "8th floor hvac.dwg", it will be loaded properly. then without closing the application i opened the "8th floor furniture.dwg" file and got that assertion
i have uploaded that two files for you, please check it.
-----------------------------
tauhid
attached files (395.5 kb, 4 views)
(253.0 kb, 3 views)

vladimir
quote:
originally posted by vkalinin
thanks vladimir
it works properly


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