vc2010_error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x
来源:互联网 发布:怎么对付淘宝职业打假 编辑:程序博客网 时间:2024/05/13 01:07
1 首先肯定是版本的问题
2 一般可以通过修改stdafx.h解决
3 可以看这篇文章的解决方法:http://kevin-hust.javaeye.com/blog/744286
4 我的解决方法:把前面的两段给注释了,下面的保留:
#include <afxwin.h> // MFC 核心和标准组件
#include <afxext.h> // MFC 扩展
#include <afxcview.h>
#include <afxdisp.h> // MFC 自动化类
5 添加:
#define WINVER 0x0400
#define _WIN32_WINNT 0x0400
6 反正算是解决了。具体情况再根据操作系统版本改吧,我在win7上用vs2010.
- vc2010_error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0501
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- PY 文件路径
- struts2配置文件struts.xml的目录问题
- ecos 编译时无法找到 tclConfig.sh 和 tkConfig.sh
- 如果你有放不下的人,进来看看吧,相信你会懂的.
- 浅谈android与Xen之间的一点共性
- vc2010_error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x
- py 的时间
- 有用的SQL语句
- ASP.NET中如何给datetime类型的数据赋Null值
- BTree,B-Tree,B+Tree,B*Tree都是什么
- JAVA 验证码
- MySQL压力测试工具mysqlslap
- 工欲善其事必先利其器–SimpleTestBed
- 心情不好时就看看,基本上包治百病!