error C1189: #error : MFC does not support
2017-01-13 14:26
1116 查看
visual
c++.net 技术内幕 第6版 附带的程序如何在vs2013中编译成功
原文来源:http://www.stockso.com/blog
请使用当前新版的vs并输入书中改动的代码就Ok,因为vs会生成合理的mfc代码,养成好的习惯,,
一开始编译,第一个错误提示
Building an MFC project for a non-Unicode character set is deprecated
首先参考这篇博客Building an MFC project for a non-Unicode character set is deprecated
安装 Multibyte MFC Library for Visual Studio 2013
然后编译,遇到这个问题
warning C4996: 'MBCS_Support_Deprecated_In_MFC': MBCS support in MFC is deprecated and may be removed in a future version of MFC.
参考这个提问 Error preprocessor directives when building
在vs2013中上面这个
warning C4996:'MBCS_Support....
双击会指向这个代码段
#ifdef _MBCS
// Warn about MBCS support being deprecated: see http://go.microsoft.com/fwlink/p/?LinkId=279048 for more information.
#pragma warning(push)
#pragma warning(1 : 4996)
就是这个链接http://go.microsoft.com/fwlink/p/?LinkId=279048文中提到可以通过将 NO_WARN_MBCS_MFC_DEPRECATION 预处理器定义添加到您的项目生成定义消除此警告。在项目stdafx.h文件中的#pragma
once下面添加
#define NO_WARN_MBCS_MFC_DEPRECATION
然后开始解决下面的问题
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文件中的
#define WINVER 0x0400
改为
#define WINVER 0x0501
#define _WIN32_WINNT 0x0400
改为
#define _WIN32_WINNT 0x0501
OK,然后是在vs2013中最后一个问题了错误 2 error CVT1100: 资源重复。类型: MANIFEST打开 项目属性 -> 配置属性 ->链接器 -> 清单文件 -> 生成清单 -> 选择否
everything is OK!
c++.net 技术内幕 第6版 附带的程序如何在vs2013中编译成功
原文来源:http://www.stockso.com/blog
请使用当前新版的vs并输入书中改动的代码就Ok,因为vs会生成合理的mfc代码,养成好的习惯,,
一开始编译,第一个错误提示
Building an MFC project for a non-Unicode character set is deprecated
首先参考这篇博客Building an MFC project for a non-Unicode character set is deprecated
安装 Multibyte MFC Library for Visual Studio 2013
然后编译,遇到这个问题
warning C4996: 'MBCS_Support_Deprecated_In_MFC': MBCS support in MFC is deprecated and may be removed in a future version of MFC.
参考这个提问 Error preprocessor directives when building
在vs2013中上面这个
warning C4996:'MBCS_Support....
双击会指向这个代码段
#ifdef _MBCS
// Warn about MBCS support being deprecated: see http://go.microsoft.com/fwlink/p/?LinkId=279048 for more information.
#pragma warning(push)
#pragma warning(1 : 4996)
就是这个链接http://go.microsoft.com/fwlink/p/?LinkId=279048文中提到可以通过将 NO_WARN_MBCS_MFC_DEPRECATION 预处理器定义添加到您的项目生成定义消除此警告。在项目stdafx.h文件中的#pragma
once下面添加
#define NO_WARN_MBCS_MFC_DEPRECATION
然后开始解决下面的问题
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文件中的
#define WINVER 0x0400
改为
#define WINVER 0x0501
#define _WIN32_WINNT 0x0400
改为
#define _WIN32_WINNT 0x0501
OK,然后是在vs2013中最后一个问题了错误 2 error CVT1100: 资源重复。类型: MANIFEST打开 项目属性 -> 配置属性 ->链接器 -> 清单文件 -> 生成清单 -> 选择否
everything is OK!
相关文章推荐
- 错误 2 error C1189: #error : MFC does not support WINVER less than 0x0501.
- Error 1 error C1189: #error : MFC does not support WINVER less than 0x0501. Please change the defi
- 策略为王编译错误2:error C1189: #error : MFC does not support
- error C1189: #error : MFC does not support
- fatal error C1189: #error : MFC does not support WINVER less than 0x0501.
- MFC does not support WINVER less than 0x0501 解决方案(转)
- error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
- error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
- MFC does not support WINVER less than 0x0501 解决方案
- MFC does not support WINVER less than 0x0501.
- MFC does not support WINVER less than 0x0501 问题解决
- MFC does not support WINVER less than 0x0501
- MFC中使用ATL报错:error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- MYSQL新版出现"Clientdoesnotsupportauthenticationprotocolrequestedbyserver;consi
- [置顶] Android项目中嵌套unity出现your hardware does not support this application,sorry!
- linux GCC编译错误:CPU you selected does not support x86-64 instruction set
- service启动redis :service redisd does not support chkconfig
- The server does not support version 3.0 of the J2EE Web module specificatio
- service redis does not support chkconfig的解决办法
- The server does not support version 3.1 of the JEE Web module specification.