没有重新实现父类虚函数的子类link时出错
MyStaSwlessSec.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CStaDevBase::HitTest(class CPoint)" (?HitTest@CStaDevBase@@MAE_NVCPoint@@@Z)
MyStaSwSec.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CStaDevBase::HitTest(class CPoint)" (?HitTest@CStaDevBase@@MAE_NVCPoint@@@Z)
StaDevBase.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CStaDevBase::HitTest(class CPoint)" (?HitTest@CStaDevBase@@MAE_NVCPoint@@@Z)
MyStaDoubleSw.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CStaDevBase::HitTest(class CPoint)" (?HitTest@CStaDevBase@@MAE_NVCPoint@@@Z)
MyStaSection.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CStaDevBase::HitTest(class CPoint)" (?HitTest@CStaDevBase@@MAE_NVCPoint@@@Z)
MyStaSingleSw.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CStaDevBase::HitTest(class CPoint)" (?HitTest@CStaDevBase@@MAE_NVCPoint@@@Z)
MyStaSwitch.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CStaDevBase::HitTest(class CPoint)" (?HitTest@CStaDevBase@@MAE_NVCPoint@@@Z)
MyStaSwlessSec.obj : error LNK2001: unresolved external symbol "protected: virtual class CRect __thiscall CStaDevBase::GetPosition(void)" (?GetPosition@CStaDevBase@@MAE?AVCRect@@XZ)
MyStaSwSec.obj : error LNK2001: unresolved external symbol "protected: virtual class CRect __thiscall CStaDevBase::GetPosition(void)" (?GetPosition@CStaDevBase@@MAE?AVCRect@@XZ)
StaDevBase.obj : error LNK2001: unresolved external symbol "protected: virtual class CRect __thiscall CStaDevBase::GetPosition(void)" (?GetPosition@CStaDevBase@@MAE?AVCRect@@XZ)
MyStaDoubleSw.obj : error LNK2001: unresolved external symbol "protected: virtual class CRect __thiscall CStaDevBase::GetPosition(void)" (?GetPosition@CStaDevBase@@MAE?AVCRect@@XZ)
MyStaSection.obj : error LNK2001: unresolved external symbol "protected: virtual class CRect __thiscall CStaDevBase::GetPosition(void)" (?GetPosition@CStaDevBase@@MAE?AVCRect@@XZ)
MyStaSingleSw.obj : error LNK2001: unresolved external symbol "protected: virtual class CRect __thiscall CStaDevBase::GetPosition(void)" (?GetPosition@CStaDevBase@@MAE?AVCRect@@XZ)
MyStaSwitch.obj : error LNK2001: unresolved external symbol "protected: virtual class CRect __thiscall CStaDevBase::GetPosition(void)" (?GetPosition@CStaDevBase@@MAE?AVCRect@@XZ)
MyStation.obj : error LNK2001: unresolved external symbol "public: virtual class CRect __thiscall CMyStation::GetPosition(void)" (?GetPosition@CMyStation@@UAE?AVCRect@@XZ)
Debug/CTCSFace.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
重新实现了虚函数的子类没有报错,其他没有实现的都有link错,什么原因?????