




已閱讀5頁,還剩5頁未讀, 繼續(xù)免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
VC6工程 遷移到 visual studio 20131配置64位編譯器3用Visual Studio 編譯64位程序5error MSB80315編譯錯誤C20658error C24408error C20659error LNK20199error LNK1123 編譯2010版的時候出現(xiàn)的10VC6工程 遷移到 visual studio 2013在visual studio 2013打開vc6下的project(.dsw)文件點擊“ok”遷移開始遷移后增加工程文件如下:配置64位編譯器單擊“配置管理器”,如下圖:這是原來的32位編譯器選擇“”新建,選擇新的平臺x64配置完成,關閉該窗口,即可編譯64位工程。用Visual Studio 編譯64位程序遷移工程的編譯過程中,難免出現(xiàn)問題。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) 庫的多字節(jié)字符集 (MFC) 版本根據(jù)visual studio的語言,選擇相應插件。下載完成后關閉VS2013,并安裝插件五分鐘左右后,插件安裝完畢。用VS2013打開VC6.0編寫的項目文件,則不會提示多字節(jié)字符集錯誤。編譯正常嘍J編譯錯誤C2065解決辦法,將 for (int i = 0; i m_deviceList.size(); i+) 中變量i的定義放到函數(shù)體開頭 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版的時候出現(xiàn)的這個錯誤是編譯2010版的時候出現(xiàn)的 failure during conversion to COFF: file invalid or corruptE:2015prog2-AutoTargetFDDetection2010LINKAutoTargetDetection解決辦法:(1)該方法 失??!右鍵單擊項目-屬性 -配置屬性 -鏈接 -常規(guī) -Enable Incremental Linking-No (/INCREMENTAL:NO)(2)該方法 成功!系統(tǒng)更新或軟件升級中,造成有多于一個版本的 Utility: cvtres.exe將C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cvtres.exe改為cvtres-old.exe原因說明:轉換到COFF文件, 完成轉換工作的是cvtres.exe這個程序。出現(xiàn)上面錯誤的根本原因是系統(tǒng)中存在有多個版本的 cvtres.exe。系統(tǒng)目錄下版本: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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 廣西崇左市本年度(2025)小學一年級數(shù)學部編版質量測試(下學期)試卷及答案
- 2025-2030年中國救生用品市場競爭格局及發(fā)展評估研究報告
- 2025屆遼寧省遼陽市高三適應性調研考試英語試題含答案
- 涂裝后處理工中級考試題(附答案)
- 廣西壯族自治區(qū)柳州市2024-2025學年高三下學期4月月考歷史試題(原卷版+解析版)
- 租書服務的校園閱讀周考核試卷
- 航空器維修質量管理與監(jiān)督考核試卷
- 批發(fā)市場的客戶體驗優(yōu)化考核試卷
- 石材加工企業(yè)質量管理與效率提升考核試卷
- 環(huán)境治理與社會責任考核試卷
- 多發(fā)傷及復合傷的搶救處理流程
- 房室結折返性心動過速
- 歷史學科中考復習方法交流
- GB/T 6284-2006化工產品中水分測定的通用方法干燥減量法
- GB/T 4025-2010人機界面標志標識的基本和安全規(guī)則指示器和操作器件的編碼規(guī)則
- GB/T 223.14-2000鋼鐵及合金化學分析方法鉭試劑萃取光度法測定釩含量
- GB/T 22080-2016信息技術安全技術信息安全管理體系要求
- GB/T 19867.5-2008電阻焊焊接工藝規(guī)程
- GB/T 18711-2002選煤用磁鐵礦粉試驗方法
- GB/T 17766-1999固體礦產資源/儲量分類
- 水池(水箱)清洗記錄
評論
0/150
提交評論