VS2005中新建的MFC项目直接运行就提示这错误,高手救我!
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall CDialog::AssertValid(void)const " (?AssertValid@CDialog@@MBEXXZ)
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall CDialog::Dump(class CDumpContext &)const " (?Dump@CDialog@@MBEXAAVCDumpContext@@@Z)
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual int __thiscall CDialog::OnCmdMsg(unsigned int,int,void *,struct AFX_CMDHANDLERINFO *)" (?OnCmdMsg@CDialog@@MAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z)
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual int __thiscall CDialog::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CDialog@@MAEHPAUtagMSG@@@Z)
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual int __thiscall CDialog::CheckAutoCenter(void)" (?CheckAutoCenter@CDialog@@MAEHXZ)
1>test121Dlg.obj : error LNK2019: 无法解析的外部符号 "public: static void __cdecl CWnd::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CWnd@@SAXPAVCDataExchange@@@Z),该符号在函数 "protected: virtual void __thiscall CAboutDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CAboutDlg@@MAEXPAVCDataExchange@@@Z) 中被引用
1>C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\test121\Debug\test121.exe : fatal error LNK1120: 6 个无法解析的外部命令
新建的MFC项目,进去后调试运行直接就提示7个错误,错误信息如上,请高手教我,写上响应代码也是如此,真不知道该怎么办了。
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall CDialog::Dump(class CDumpContext &)const " (?Dump@CDialog@@MBEXAAVCDumpContext@@@Z)
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual int __thiscall CDialog::OnCmdMsg(unsigned int,int,void *,struct AFX_CMDHANDLERINFO *)" (?OnCmdMsg@CDialog@@MAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z)
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual int __thiscall CDialog::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CDialog@@MAEHPAUtagMSG@@@Z)
1>test121Dlg.obj : error LNK2001: 无法解析的外部符号 "protected: virtual int __thiscall CDialog::CheckAutoCenter(void)" (?CheckAutoCenter@CDialog@@MAEHXZ)
1>test121Dlg.obj : error LNK2019: 无法解析的外部符号 "public: static void __cdecl CWnd::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CWnd@@SAXPAVCDataExchange@@@Z),该符号在函数 "protected: virtual void __thiscall CAboutDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CAboutDlg@@MAEXPAVCDataExchange@@@Z) 中被引用
1>C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\test121\Debug\test121.exe : fatal error LNK1120: 6 个无法解析的外部命令
新建的MFC项目,进去后调试运行直接就提示7个错误,错误信息如上,请高手教我,写上响应代码也是如此,真不知道该怎么办了。
...全文
相关推荐
MFC对话框中编辑框字体大小与颜色的设置(VS2005)
VS2005中的MFC开发: Visual Studio 2005提供了对MFC的全面支持,包括向导生成的项目模板,资源编辑器,以及调试工具。
MFC工程 vs2008 C++编译JSONCPP 静态库
使用jjsoncpp解析json文件,在工程中使用静态库.配置介绍 1. VS2008 2. MFC工程下使用 3. JSON源码,下载地址: 4. 解压下载的问价:jsoncpp-src-0.5.0.tar.gz 5.打开源码的工程E:\vs2008_project\json\jsoncpp-src-0.5.0\makefiles\vs71\jsoncpp.sln 6.生成Debug
基于MFC的ActiveX控件开发(VS2005)
**创建控件项目** - 打开VS2005,选择“文件” -> “新建” -> “项目”,在弹出的新建项目对话框中,选择左侧的“Visual C++” -> “MFC”,然后选择右侧的“MFC ActiveX
vs2005环境下开发的MFC程序运行所需DLL
当开发或运行使用VS2005 MFC的程序时,确保这些DLL文件在正确的位置至关重要。如果没有它们,程序可能无法启动,或者出现“找不到DLL”错误。
MFC的用户登录系统
**新建MFC工程**:在VS2005中,选择“文件” > “新建” > “项目”,然后选择MFC应用程序模板。2.


