在Dib类中这样调用View类中的函数不对吗?该怎么写啊?谢谢!
voidMorphology::Reference(){MessageBox(0,"请右击鼠标确定对象坐标",MB_OK,0);CGapView*pView;pView-...
void Morphology::Reference()
{
MessageBox(0,"请右击鼠标确定对象坐标",MB_OK,0);
CGapView* pView;
pView->OnRButtonDown();
if(j=CGapView.Ppoint_x )
{
.......
}
}
调试错误是:
'CGapView' : undeclared identifier;
'pView' : undeclared identifier;
operator has no effect; expected operator with side-effect;
left of '->OnRButtonDown' must point to class/struct/union;
left of '.Ppoint_x' must have class/struct/union type;
请问该怎么改啊?非常感谢! 展开
{
MessageBox(0,"请右击鼠标确定对象坐标",MB_OK,0);
CGapView* pView;
pView->OnRButtonDown();
if(j=CGapView.Ppoint_x )
{
.......
}
}
调试错误是:
'CGapView' : undeclared identifier;
'pView' : undeclared identifier;
operator has no effect; expected operator with side-effect;
left of '->OnRButtonDown' must point to class/struct/union;
left of '.Ppoint_x' must have class/struct/union type;
请问该怎么改啊?非常感谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询