void CEx6View::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
// TODO: Add your specialized code here and/or call the base class
CEx6Doc* m2=(CEx6Doc*)GetDocument();
m_t1=m2->m_cp.x ;
m_t2=m2->m_cp.y ;
UpdateData();
}
错误提示:
cdraw.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall cdraw::OnUpdate(class CView *,long,class CObject *)" (?OnUpdate@cdraw@@MAEXPAVCView@@JPAVCObject@@@Z)
Debug/ex6.exe : fatal error LNK1120: 1 unresolved externals
--------------
是说不能重载这个函数吧
可是教材上重载了
{
// TODO: Add your specialized code here and/or call the base class
CEx6Doc* m2=(CEx6Doc*)GetDocument();
m_t1=m2->m_cp.x ;
m_t2=m2->m_cp.y ;
UpdateData();
}
错误提示:
cdraw.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall cdraw::OnUpdate(class CView *,long,class CObject *)" (?OnUpdate@cdraw@@MAEXPAVCView@@JPAVCObject@@@Z)
Debug/ex6.exe : fatal error LNK1120: 1 unresolved externals
--------------
是说不能重载这个函数吧
可是教材上重载了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货