仔细检查了代码,也没发现哪里有问题~~麻烦达人给解答一下,谢谢!
1>Link:
1>     正在创建库 F:\工作目录\Control\Star\ControlStar\Debug\ControlStar.lib 和对象 F:\工作目录\Control\Star\ControlStar\Debug\ControlStar.exp
1>ClassView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::OnBeforeChangeParent(class CWnd *,int)" (?OnBeforeChangeParent@CMFCToolBar@@EAEXPAVCWnd@@H@Z)
1>WorkView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::OnBeforeChangeParent(class CWnd *,int)" (?OnBeforeChangeParent@CMFCToolBar@@EAEXPAVCWnd@@H@Z)
1>ClassView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::AccNotifyObjectFocusEvent(int)" (?AccNotifyObjectFocusEvent@CMFCToolBar@@EAEXH@Z)
1>WorkView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::AccNotifyObjectFocusEvent(int)" (?AccNotifyObjectFocusEvent@CMFCToolBar@@EAEXH@Z)
1>ClassView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::OnAfterFloat(void)" (?OnAfterFloat@CMFCToolBar@@EAEXXZ)
1>WorkView.obj : error LNK2019: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::OnAfterFloat(void)" (?OnAfterFloat@CMFCToolBar@@EAEXXZ),该符号在函数 "protected: int __thiscall CWorkView::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CWorkView@@IAEHPAUtagCREATESTRUCTW@@@Z) 中被引用
1>ClassView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::OnAfterDock(class CBasePane *,struct tagRECT const *,enum AFX_DOCK_METHOD)" (?OnAfterDock@CMFCToolBar@@EAEXPAVCBasePane@@PBUtagRECT@@W4AFX_DOCK_METHOD@@@Z)
1>WorkView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::OnAfterDock(class CBasePane *,struct tagRECT const *,enum AFX_DOCK_METHOD)" (?OnAfterDock@CMFCToolBar@@EAEXPAVCBasePane@@PBUtagRECT@@W4AFX_DOCK_METHOD@@@Z)
1>ClassView.obj : error LNK2001: 无法解析的外部符号 "private: virtual int __thiscall CMFCToolBar::InsertButton(class CMFCToolBarButton *,int)" (?InsertButton@CMFCToolBar@@EAEHPAVCMFCToolBarButton@@H@Z)
1>WorkView.obj : error LNK2019: 无法解析的外部符号 "private: virtual int __thiscall CMFCToolBar::InsertButton(class CMFCToolBarButton *,int)" (?InsertButton@CMFCToolBar@@EAEHPAVCMFCToolBarButton@@H@Z),该符号在函数 "public: void __cdecl ATL::CTraceFileAndLineInfo::operator()(wchar_t const *,...)const " (??RCTraceFileAndLineInfo@ATL@@QBAXPB_WZZ) 中被引用
1>ClassView.obj : error LNK2001: 无法解析的外部符号 "private: virtual int __thiscall CMFCToolBar::DrawButton(class CDC *,class CMFCToolBarButton *,class CMFCToolBarImages *,int,int)" (?DrawButton@CMFCToolBar@@EAEHPAVCDC@@PAVCMFCToolBarButton@@PAVCMFCToolBarImages@@HH@Z)
1>WorkView.obj : error LNK2001: 无法解析的外部符号 "private: virtual int __thiscall CMFCToolBar::DrawButton(class CDC *,class CMFCToolBarButton *,class CMFCToolBarImages *,int,int)" (?DrawButton@CMFCToolBar@@EAEHPAVCDC@@PAVCMFCToolBarButton@@PAVCMFCToolBarImages@@HH@Z)
1>ClassView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::DrawDragCursor(class CDC *)" (?DrawDragCursor@CMFCToolBar@@EAEXPAVCDC@@@Z)
1>WorkView.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall CMFCToolBar::DrawDragCursor(class CDC *)" (?DrawDragCursor@CMFCToolBar@@EAEXPAVCDC@@@Z)
1>F:\工作目录\Control\Star\ControlStar\Debug\ControlStar.exe : fatal error LNK1120: 7 个无法解析的外部命令
1>
1>生成失败。
1>
1>已用时间 00:00:36.51
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========