error MSB8031 Building an MFC project for a non-Unicode character set is deprecated

本文主要是介绍error MSB8031 Building an MFC project for a non-Unicode character set is deprecated,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

VS2013多字节工程问题

    使用VS2013编译旧版VC++程序时,提示Building an MFC project for anon-Unicode character set is deprecated,微软提供了解决方案。

 

一、错误信息

 

1>C:\ProgramFiles (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(376,5):error MSB8031: Building an MFC project for a non-Unicode character set isdeprecated. You must change the project property to Unicode or download anadditional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 formore information.

==========生成:  成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

 

二、微软解释

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

在安装 MBCS DLL 后,如果卸载或修复 VisualStudio,则还会卸载或修复。 但是,如果只禁用 MFC,MBCS DLL 仍会保留在系统上。 如果仅卸载或修复 MBCS DLL,将不会修改 VisualStudio。

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

 

具体内容:

Hello,I’m Pat Brenner, a developer on the Visual C++ Libraries team. In this blogpost I want to share some information about the Microsoft Foundation Class (MFC) Library, and in particular the support of the multi-byte character set(MBCS) in MFC.

MFChas many features that support building desktop apps, and MFC has supportedboth Unicode and MBCS for many years. However, because Unicode is so popular,and because our research shows significantly reduced usage of MBCS, we aredeprecating MBCS support in MFC for Visual Studio 2013. This keeps MFC moreclosely aligned with the Windows SDK itself, because many of the newestcontrols and messages are Unicode only. A warning to this effect has been addedto MFC, so when an application is built using MBCS, a deprecation warning isissued. This warning can be eliminated by adding theNO_WARN_MBCS_MFC_DEPRECATION preprocessor definition to your project builddefinitions.

MFC isa very large library and its binary components (static and dynamic librariesand PDBs) form a large part of the total size of the Visual C++ product. Thesize of the MFC libraries substantially increases both download size andinstall time (in full install and update scenarios). In part this is becausethere are so many flavors of the MFC libraries: Debug/Release, Unicode/MBCS,Static/Dynamic. To address this, the MBCS libraries will only be available viaa separate download, which is available here.

Thegoal is to remove MBCS support entirely in a subsequent release. MFC would thensupport only Unicode. We are interested in hearing feedback about thisdecision, so if you have comments, please take the time to leave a response tothis article. Are you using MBCS in MFC? If so, what is the reason, and isthere a reason you have not converted your application to Unicode?

We’recommitted to supporting MFC and making sure that applications built with MFCwill run on future Windows platforms. I hope you find this information usefuland reassuring.

PatBrenner, Visual C++ Libraries Development Team

 

三、Multibyte MFC Library for Visual Studio2013下载地址

http://www.microsoft.com/zh-cn/download/details.aspx?id=40770




这篇关于error MSB8031 Building an MFC project for a non-Unicode character set is deprecated的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1065866

相关文章

#error用法

/* *检查编译此源文件的编译器是不是C++编译器 *如果使用的是C语言编译器则执行#error命令 *如果使用的是 C++ 编译器则跳过#error命令 */ #ifndef __cplusplus #error 亲,您当前使用的不是C++编译器噢! #endif #include <stdio.h> int main() {

ITMS-90339: Deprecated Info.plist Key

The Info.plist contains a key 'UIApplicationExitsOnSuspend' in bundle 在info.plist中找到这个key——UIApplicationExitsOnSuspend,然后删掉就可以了。确保没问题的话也跑一下看是否可以能在后台运行。 需要先转换一下,才能找到对应的key

brew install opencv@2 时报错 Error: Can't create update lock in /usr/local/var/homebrew/locks!

解决方案,报错里已经说明了: 我的解决方案: sudo chown -R "$USER":admin /usr/local   stackoverflow上的答案 I was able to solve the problem by using chown on the folder: sudo chown -R "$USER":admin /usr/local Also you'

BD错误集锦8——在集成Spring MVC + MyBtis编写mapper文件时需要注意格式 You have an error in your SQL syntax

报错的文件 <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.yuan.dao.YuanUserDao"><!

BD错误集锦3——ERROR: Can't get master address from ZooKeeper; znode data == null

hbase集群没启动,傻子!   启动集群 [s233 s234 s235]启动zk集群 $>zkServer.sh start $>zkServer.sh status   [s233] 启动dfs系统 $>start-dfs.sh 如果s237 namenode启动失败,则 [s237] $>hadoop-daemon.sh start namenode [s233]启动yarn集群

BD错误集锦1——[Hive]ERROR StatusLogger No log4j2 configuration file found. Using default configuration:

错误描述:在使用IDEA进行jdbc方式连接到hive数据仓库时,出现以下错误:                ERROR StatusLogger No log4j2 configuration file found. 问题原因:缺少log4j2.xml文件   <?xml version="1.0" encoding="UTF-8"?><Configuration><Appender

[分布式网络通讯框架]----Zookeeper客户端基本操作----ls、get、create、set、delete

Zookeeper数据结构 zk客户端常用命令 进入客户端 在bin目录下输入./zkCli.sh 查看根目录下数据ls / 注意:要查看哪一个节点,必须把路径写全 查看节点数据信息 get /第一行代码数据,没有的话表示没有数据 创建节点create /sl 20 /sl为节点的路径,20为节点的数据 注意,不能跨越创建,也就是说,创建sl2的时候,必须确保sl

Java compiler level does not match the version of the installed Java project facet. map解决方法

右键项目“Properties”,在弹出的“Properties”窗口左侧,单击“Project Facets”,打开“Project Facets”页面。 在页面中的“Java”下拉列表中,选择相应版本就OK了。

2_为MFC程序添加菜单

在MFC中添加菜单栏 1,双击资源文件,显示资源视图,点击Menu插入Menu菜单,编辑菜单的ID,自己取名字。 2,点击“请在此处键入”添加菜单选项,输入&E,E的下面就会产生下划线;在产生的弹出菜单中继续编辑,并且可以添加事件处理函数; 在弹出菜单的任意位置,鼠标右键,弹出的菜单中选择“插入分隔符”,即可产生分隔符 3,在你设计的Dialog窗口的属性栏,选择Menu后面的

【鸿蒙】ERROR_GET_BUNDLE_INSTALLER_FAILED

错误信息 [ERROR_GET_BUNDLE_INSTALLER_FAILED] Troubleshooting guide $ hdc file send D:\Huawei\devEcoProjects\entry\build\default\outputs\default\entry-default-unsigned.hap /sdcard/e8a215ea7be1444197e6a58e