转自网络:
问题描述:
使用VS2013编译旧版VC++程序时,提示Building an MFC project for a non-Unicode character set is deprecated
错误信息
[cpp] view plaincopyprint?
01.<span style=”font-family: FangSong_GB2312;”><span style=”font-size: 14px;”>1>—— 已启动全部重新生成: 项目: Server, 配置: Release Win32 ——
02.1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(369,5): error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.
03.========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========
解决方法:
微软解释:
用于多字节字符编码 (MBCS) 的 MFC 库 (DLL) 不再包含于 Visual Studio 中,但是可用作插件,您可以在任何装有 Visual Studio Professional、Visual Studio Premium 或 Visual Studio Ultimate 的计算机上下载和安装。(在 Visual Studio 中,必须启用 MFC。)安装需要大约 440 MB 磁盘空间,包括英语(美国)和 DLL 的本地化版本。
大概意思就是:
VS2013把 multi-byte character set 支持移除了到 http://www.microsoft.com/en-us/download/details.aspx?id=40770下载安装就行了