[英]Which SDK do I need to ensure Windows 7 compatibility in Visual Studio C++ 2017
I am building Desktop apps with Visual Studio C++ 2017 on Windows 10. Compatibility with Windows 7 and 8 is required. 我在Windows 10上使用Visual Studio C ++ 2017构建桌面应用程序。需要与Windows 7和8兼容。
May I use the latest Windows 10 SDK for this, or do I have to use the Windows 8.1 SDK? 我可以使用最新的Windows 10 SDK,还是必须使用Windows 8.1 SDK?
You can use the Windows 10 SDK to write Windows desktop applications compatible with Windows 7 and up. 您可以使用Windows 10 SDK编写与Windows 7及更高版本兼容的Windows桌面应用程序。 The minimum target version is controlled through preprocessor symbols (
WINVER
and _WIN32_WINNT
). 最小目标版本通过预处理器符号(
WINVER
和_WIN32_WINNT
)控制。 Set them to 0x0601
to target Windows 7 and up. 将它们设置为
0x0601
以定位Windows 7及更高版本。
See Using the Windows Headers for details. 有关详细信息,请参阅使用Windows标头 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.