升级到VS2013常见问题

问题1:less

Building an MFC project for a non-Unicode character set is deprecatedvisual-studio

解决方法:ui

 

用于多字节字符编码 (MBCS) 的 MFC 库 (DLL) 再也不包含于 Visual Studio 中,可是可用做插件,您能够在任何装有 Visual Studio Professional、Visual Studio Premium 或 Visual Studio Ultimate 的计算机上下载和安装。(在 Visual Studio 中,必须启用 MFC。)安装须要大约 440 MB 磁盘空间,包括英语(美国)和 DLL 的本地化版本。this

在安装 MBCS DLL 后,若是卸载或修复 Visual Studio,则还会卸载或修复。 可是,若是只禁用 MFC,MBCS DLL 仍会保留在系统上。 若是仅卸载或修复 MBCS DLL,将不会修改 Visual Studio。编码

总结下就是安装   Multibyte MFC Library for Visual Studio 2013spa

详细信息:http://blogs.msdn.com/b/vcblog/archive/2013/07/08/mfc-support-for-mbcs-deprecated-in-visual-studio-2013.aspx            .net

下载地址:http://www.microsoft.com/zh-cn/download/details.aspx?id=40770插件

 

问题2:3d

warning C4996: 'MBCS_Support_Deprecated_In_MFC': MBCS support in MFC is deprecated and may be removed in a future version of MFC.code

解决方法:

这个连接http://go.microsoft.com/fwlink/p/?LinkId=279048文中提到能够经过将 NO_WARN_MBCS_MFC_DEPRECATION 预处理器定义添加到您的项目生成定义消除此警告。在项目stdafx.h文件中的#pragma once下面添加

 

[cpp]  view plain copy 在CODE上查看代码片 派生到个人代码片
 
  1. #define NO_WARN_MBCS_MFC_DEPRECATION    
[cpp]  view plain  copy
 
 在CODE上查看代码片派生到个人代码片
  1. #define NO_WARN_MBCS_MFC_DEPRECATION    

 

 

 

 

问题3:

error C1189: #error : MFC does not support WINVER less than 0x0501. Please change the definition of WINVER in your project properties or precompiled header.  

解决方法:

将stdafx.h文件中的

 

[cpp]  view plain copy 在CODE上查看代码片 派生到个人代码片
 
  1. #define WINVER 0x0400      
  2. #define WINVER 0x0501       
  3. #define _WIN32_WINNT 0x0400    
  4. 改成  
  5. #define _WIN32_WINNT 0x0501   
[cpp]  view plain  copy
 
 在CODE上查看代码片派生到个人代码片
  1. #define WINVER 0x0400      
  2. #define WINVER 0x0501       
  3. #define _WIN32_WINNT 0x0400    
  4. 改成  
  5. #define _WIN32_WINNT 0x0501   

 

 

问题4:

_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)

解决方法:

在StdAfx.h头文件里面加上#include <SDKDDKVer.h>有关于平台的定义

 

问题5:

warning C4996: 'CWinApp::Enable3dControlsStatic': CWinApp::Enable3dControlsStatic is no longer needed. You should remove this call.

解决方法:

直接注释掉 代码以下

 

[cpp]  view plain copy 在CODE上查看代码片 派生到个人代码片
 
  1. #ifdef _AFXDLL  
  2.     Enable3dControls();         // Call this when using MFC in a shared DLL  
  3. #else  
  4.     //Enable3dControlsStatic(); // Call this when linking to MFC statically  
  5. #endif  
[cpp]  view plain  copy
 
 在CODE上查看代码片派生到个人代码片
  1. #ifdef _AFXDLL  
  2.     Enable3dControls();         // Call this when using MFC in a shared DLL  
  3. #else  
  4.     //Enable3dControlsStatic(); // Call this when linking to MFC statically  
  5. #endif  



 

问题6:

LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification

解决方法:

相关文章
相关标签/搜索