查看单个帖子
旧 2009-05-06, 11:34 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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)
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)