win7 _WIN32_WINNT>=0x0601vista _WIN32_WINNT>=0x0600Windows XP _WIN32_WINNT>=0x0501 Windows 2000 _WIN32_WINNT>=0x0500 Windows NT 4.0 _WIN32
在“预处理器定义”中添加 _WIN32_WINNT=0x0601(或你选择的版本号)。5. 重新编译项目,验证问题是否解决 在定义了 _WIN32_WINNT 宏之后,重新编译你的项目。如果一切设置正确,那么之前的编译错误应该会被解决。 通过以上步骤,你应该能够解决 fatal error c1189: #error : this file requires _win32_winnt to ...
To set _WIN32_WINNT in your source file, use the following statement: #define _WIN32_WINNT 0x0502 To set _WIN32_WINNT using the /D compiler option, use the following command: cl -c /D_WIN32_WINNT=0x0502source**.cpp** For information on using the /D compiler option,...
WINVER>=0x0410 Windows 95 _WIN32_WINDOWS>=0x0400 WINVER>=0x0400 _WIN32_IE: Internet Explorer 7.0 _WIN32_IE>=0x0700 Internet Explorer 6.0 SP2 _WIN32_IE>=0x0603 Internet Explorer 6.0 SP1 _WIN32_IE>=0x0601 Internet Explorer 6.0 _WIN32_IE>=0x0600 Internet Explorer 5.5 _WIN32_IE>=0x...
#define _WIN32_WINNT_WS03 0x0502 #define _WIN32_WINNT_WIN6 0x0600 #define _WIN32_WINNT_VISTA 0x0600 #define _WIN32_WINNT_WS08 0x0600 #define _WIN32_WINNT_LONGHORN 0x0600 #define _WIN32_WINNT_WIN7 0x0601 #define _WIN32_WINNT _WIN32_WINNT_WINXP ...
#define _WIN32_IE 0x0601 // Change this to the appropriate value to target IE 5.0 or later. #endif 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 实际上将上面的内容删除,也能使用默认值通过编译,但是不知道是否通用。
Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <WinSDKVer.h> #define _WIN32_WINNT 0x0601 #include <SDKDDKVer.h...
0x0600 // Windows Vista #define _WIN32_WINNT_WIN7 0x0601 // Windows 7 #define _WIN32_WINNT_WIN8 0x0602 // Windows 8 #define _WIN32_WINNT_WINBLUE 0x0603 // Windows 8.1 #define _WIN32_WINNT_WINTHRESHOLD 0x0A00 // Windows 10 #define _WIN32_WINNT_WIN10 0x0A00 // Windows 10 /...
0x0600// Windows Vista#define_WIN32_WINNT_WS08 0x0600// Windows Server 2008#define_WIN32_WINNT_LONGHORN 0x0600// Windows Vista#define_WIN32_WINNT_WIN7 0x0601// Windows 7#define_WIN32_WINNT_WIN8 0x0602// Windows 8#define_WIN32_WINNT_WINBLUE 0x0603// Windows 8.1#define_WIN32_WINNT_...
#define _WIN32_WINNT_WIN7 0x0601 // Windows 7 #define _WIN32_WINNT_WIN8 0x0602 // Windows 8 #define _WIN32_WINNT_WINBLUE 0x0603 // Windows 8.1 #define _WIN32_WINNT_WINTHRESHOLD 0x0A00 // Windows 10 #define _WIN32_WINNT_WIN10 0x0A00 // Windows 10本...