VS2013中添加对多字符集的支持

1.问题描述

           VS2013中创建的工程默认采用Unicode编码,在使用VS2013编译旧版VC++程序时,经常提示Buildingan MFC project for a non-Unicode character set is deprecated。(VC6.0中工程默认采用对字符集编码)
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 Unicodeor download an additional library.See http ://go.microsoft.com/fwlink/p/?LinkId=286820for more information.

== == == == == 全部重新生成 : 成功 0 个,失败 1 个,跳过 0 个 == == ==== ==

2. 问题分析

       针对此多字符集和Unicode编码问题,微软提供了官方解决方案。
       用于多字节字符编码 (MBCS) 的 MFC 库 (DLL) 不再包含于 VisualStudio 中,但是可用作插件,您可以在任何装有 Visual Studio Professional、Visual StudioPremium 或 Visual Studio Ultimate 的计算机上下载和安装。(在 VisualStudio 中,必须启用 MFC)安装需要大约 440 MB 磁盘空间。
       在安装MBCS DLL后,如果卸载或修复Visual Studio,则还会将MBCS DLL卸载或修复。但是如果只禁用 MFC,MBCS DLL 仍会保留在系统上。如果仅卸载或修复 MBCS DLL,将不会修改 Visual Studio。
       更多参考信息,可以参见微软VisualC++ Team Blog的解释说明,网址如下。 http://blogs.msdn.com/b/vcblog/archive/2013/07/08/mfc-support-for-mbcs-deprecated-in-visual-studio-2013.aspx

3. 问题解决

      参考上述问题分析,下载并安装MBCSDLL即可。此处给出网址的VS2013对应的的MBCS版本。 http://www.microsoft.com/zh-cn/download/details.aspx?id=40770

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值