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