VC6工程 迁移到 visual studio 2013-64位 编译.docx_第1页
VC6工程 迁移到 visual studio 2013-64位 编译.docx_第2页
VC6工程 迁移到 visual studio 2013-64位 编译.docx_第3页
VC6工程 迁移到 visual studio 2013-64位 编译.docx_第4页
VC6工程 迁移到 visual studio 2013-64位 编译.docx_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

VC6工程 迁移到 visual studio 20131配置64位编译器3用Visual Studio 编译64位程序5error MSB80315编译错误C20658error C24408error C20659error LNK20199error LNK1123 编译2010版的时候出现的10VC6工程 迁移到 visual studio 2013在visual studio 2013打开vc6下的project(.dsw)文件点击“ok”迁移开始迁移后增加工程文件如下:配置64位编译器单击“配置管理器”,如下图:这是原来的32位编译器选择“”新建,选择新的平台x64配置完成,关闭该窗口,即可编译64位工程。用Visual Studio 编译64位程序迁移工程的编译过程中,难免出现问题。error MSB8031Error1error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. (弃用的non-Unicode字符集)You must change the project property to Unicode or download an additional library. See /fwlink/p/?LinkId=286820 for more information.C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.CppBuild.targets3695AutoTargetDetection解决办法:下载插件:Multibyte MFC Library for Visual Studio 2013/zh-cn/download/details.aspx?id=40770Visual Studio 2013 的加载项包含 Microsoft 基础类 (MBCS) 库的多字节字符集 (MFC) 版本根据visual studio的语言,选择相应插件。下载完成后关闭VS2013,并安装插件五分钟左右后,插件安装完毕。用VS2013打开VC6.0编写的项目文件,则不会提示多字节字符集错误。编译正常喽J编译错误C2065解决办法,将 for (int i = 0; i m_deviceList.size(); i+) 中变量i的定义放到函数体开头 int i; for (i = 0; i m_deviceList.size(); i+) error C2440(1) static_cast : cannot convert from void (_cdecl CWindowTip:* )(UINT) to void (_cdecl CWnd:* )(UINT_PTR)E:2015prog2-AutoTargetFDDetection64WindowTip.cpp1281AutoTargetDetection解决办法:/en/k/0011/search for the line OnTimer(UINT before compilation and replace it with OnTimer(UINT_PTR .原来的OnTimer定义:afx_msg void OnTimer(UINT nIDEvent);改为:afx_msg void OnTimer(UINT_PTR nIDEvent);(2) static_cast : cannot convert from UINT (_cdecl CSizingControlBarG:* )(CPoint) to LRESULT (_cdecl CWnd:* )(CPoint)E:2015prog2-AutoTargetFDDetection64scbarg.cpp571AutoTargetDetection解决办法:/questions/3365935/how-to-fix-error-with-sample-code-for-mfc-tooltips原来的OnNcHitTest定义: afx_msg UINT OnNcHitTest(CPoint point);改为:afx_msg LRESULT OnNcHitTest(CPoint point;)(3)static_cast : cannot convert from BOOL (_cdecl CAutoTDNewProjectDlg:* )(void) to AFX_PMSGE:2015prog2-AutoTargetFDDetection64AutoTDNewProjectDlg.cpp411AutoTargetDetectionBOOL 修改为voiderror C2065GCL_HBRBACKGROUND : undeclared identifierE:2015prog2-AutoTargetFDDetection64sizecbar.cpp5361AutoTargetDetectionGCL_HBRBACKGROUND用-10代替参考/en-us/library/ms633580(VS.85).aspxerror LNK2019error LNK2019: unresolved external symbol _declspec(dllimport) public: void _thiscall CELUColorButton:SetText(class ATL:CStringTchar,class StrTraitMFC_DLLchar,class ATL:ChTraitsCRT ) (_imp_?SetTextCELUColorButtonQAEXV?$CStringTDV?$StrTraitMFC_DLLDV?$ChTraitsCRTDATLATLZ) referenced in function protected: virtual int _thiscall CAutoTDNewProjectDlg:OnInitDialog(void) (?OnInitDialogCAutoTDNewProjectDlgMAEHXZ)E:2015prog2-AutoTargetFDDetection64AutoTDNewProjectDlg.objAutoTargetDetectionerror LNK2019: unresolved external symbol _declspec(dllimport) public: int _thiscall CELUDiskEnvironment:ObtainMemoryMappingFilePointer(class ATL:CStringTchar,class StrTraitMFC_DLLchar,class ATL:ChTraitsCRT ,int,unsigned char * &,struct ELUPathName &) (_imp_?ObtainMemoryMappingFilePointerCELUDiskEnvironmentQAEHV?$CStringTDV?$StrTraitMFC_DLLDV?$ChTraitsCRTDATLATLHAAPAEAAUELUPathNameZ) referenced in function public: int _thiscall COpenImageFiles:OpenIMGLayers(struct WorkAreaParameter &,double &,double &,double &,double &,double &,struct IMGDataHisto *,int,unsigned char * &) (?OpenIMGLayersCOpenImageFilesQAEHAAUWorkAreaParameterAAN1111PAUIMGDataHistoHAAPAEZ)E:2015prog2-AutoTargetFDDetection64OpenImageFiles.objAutoTargetDetection解决办法:将两个dll、lib重新编译,OK。error LNK1123 编译2010版的时候出现的这个错误是编译2010版的时候出现的 failure during conversion to COFF: file invalid or corruptE:2015prog2-AutoTargetFDDetection2010LINKAutoTargetDetection解决办法:(1)该方法 失败!右键单击项目-属性 -配置属性 -链接 -常规 -Enable Incremental Linking-No (/INCREMENTAL:NO)(2)该方法 成功!系统更新或软件升级中,造成有多于一个版本的 Utility: cvtres.exe将C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cvtres.exe改为cvtres-old.exe原因说明:转换到COFF文件, 完成转换工作的是cvtres.exe这个程序。出现上面错误的根本原因是系统中存在有多个版本的 cvtres.exe。系统目录下版本:C:/Windows/Microsoft.NET/Framework/v4.0.30319/cvtres.exe VS目录下版本:C:/Program Files (x86)/Microsoft

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论