几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem with singledoc (http://www.dimcax.com/hust/showthread.php?t=18170)

yang686526 2009-05-06 11:34 PM

【转帖】problem with singledoc
 
problem with singledoc
problem with singledoc
hello,
i'm a green hand .
when i run the singledoc project in allexamples.dsw (the path of it is \dd_nonlibs\projectfiles\win32\msvc6), it appears to work well. but when i open a dwg document, it shows nothing but a background.
i wonder is there something i should set to make it correct?
could someone is kind enough to tell me which fuction of this program is in charge of drawing views ?
thanks.
ps: i set d:\tddownload\opendsign\dd_vc6dbg\lib\vc6mdd
d:\tddownload\opendsign\dd_vc6dbg\lib\vc6mld
d:\tddownload\opendsign\dd_vc6dbg\lib\vc6mtd
as the library files.
i debugged this program and i found that there is an error in the following code.
void csingledocview::resetdevice(bool zoomextents)
{
......
m_bpsoverall = (getdocument()->m_pdb->gettilemode()==0);
.....
when i checked out the value of getdocument()->m_pdb->gettilemode() ,the vc6 ide shows that the value is--" getdocument()->m_pdb->gettilemode() cxx0063: error: overloaded operator -> not supported".
however, this application still runs successfully without showing any error message, even it can't show anything on the screen yet.
someone could help?
thanks.
attached images

could someone help me?
thank you in advance!
you say you open dwg file, but you attached a dwf file.
vladimir
quote:
originally posted by wvk
you say you open dwg file, but you attached a dwf file.
i'm really sorry .
however, actually the problem is not about the dwg file, it's about the singledoc program i debugged. it just shows nothing even i tried several other dwg files.
i just wonder is there any possible reason leading to this queer problem?
thank you !
attached files (64.4 kb, 1 views)


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