vc2010转化vc2005或低版本VC过程后,编译错误 解决方法
2012-11-28 09:31
633 查看
转化为vc2010后,出现以下错误:
“C:/Program Files/Microsoft Visual Studio 10.0/VC/atlmfc/include/atlcore.h(35): fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.”
解决方法:
stdafx.h头文件中找到如下:
替换为:
“C:/Program Files/Microsoft Visual Studio 10.0/VC/atlmfc/include/atlcore.h(35): fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.”
解决方法:
stdafx.h头文件中找到如下:
//#ifndef WINVER // 允许使用 Windows 95 和 Windows NT 4 或更高版本的特定功能。 //#define WINVER 0x0400 //为 Windows98 和 Windows 2000 及更新版本改变为适当的值。 //#endif // //#ifndef _WIN32_WINNT // 允许使用 Windows NT 4 或更高版本的特定功能。 //#define _WIN32_WINNT 0x0400 //为 Windows98 和 Windows 2000 及更新版本改变为适当的值。 //#endif // //#ifndef _WIN32_WINDOWS // 允许使用 Windows 98 或更高版本的特定功能。 //#define _WIN32_WINDOWS 0x0410 //为 Windows Me 及更新版本改变为适当的值。 //#endif // //#ifndef _WIN32_IE // 允许使用 IE 4.0 或更高版本的特定功能。 //#define _WIN32_IE 0x0400 //为 IE 5.0 及更新版本改变为适当的值。 //#endif
替换为:
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later. #define WINVER 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #endif #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later. #define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #endif #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. #define _WIN32_WINDOWS 0x0501 // Change this to the appropriate value to target Windows Me or later. #endif #ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later. #define _WIN32_IE 0x0601 // Change this to the appropriate value to target IE 5.0 or later. #endif
相关文章推荐
- vc2010转化vc2005或低版本VC过程后,编译错误 解决方法
- vc2010转化vc2005或低版本VC过程后,编译错误 解决方法
- VC++ 2005编译出程序出现“应用程序配置错误”的解决方法
- 【PTAMM】PTAMM编译过程若干非常见错误解决方法
- UE4 不同版本编译常见错误及解决方法
- linux 编译kernel与svn版本冲突解决方法 [drivers/gpu/mali/mali/common/mali_kernel_core.o] 错误 1
- vc2005编译程序成功后运行不了提示“没有找到MSVCP80D.dll...“的解决方法
- ios 编译过程中碰到std::ios_base::Init::~Init()错误的问题解决方法
- Android 工程编译 Unsupported major.minor version 51.0 错误解决方法(JDK版本问题)
- PHP编译过程中常见错误信息的解决方法
- vs2010 项目或者MFC编译错误 转换到coff期间失败的详细解决方法
- VS 2005中毒后编译出现的错误及其解决过程
- Qtopia2 编译过程错误总结与解决方法
- cocos2d-x-2.2中编译cocos2d-win32.vc2010 C1083 pthread.h No such file or director错误的解决办法
- C编程 编译运行过程中系统提示错误及解决方法总结
- vc编译错误:不能解析某些函数的解决方法
- 关于使用android studio 2.2.3版本编译报错过于简洁无法定位错误解决方法
- VS 2005中毒后编译出现的错误及其解决过程
- vc2005编译过程中"没有找到MFC80UD.DLL,因此这个程序未能启动.重新安装应用程序可能会修复此问题"? 的彻底解决
- VC2005编译的MFC程序提示“由于应用程序配置不正 确,应用程序未能启动”解决方法(转)