Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

May I use the latest Windows 10 SDK for this, or do I have to use the Windows 8.1 SDK?

like image 792
Jakob Avatar asked May 30 '17 12:05

Jakob


People also ask

Is Visual Studio 2017 supported on Windows 7?

For those who are using an older version of Windows, Visual Studio 2017 will run on Windows 7 SP1, Server 2012 R2, Windows 8.1 (with update 2919355) and Windows Server 2016.

Can I use Windows 10 SDK on Windows 7?

With the Windows SDK, you can begin building Universal Windows apps and desktop apps for Windows 10, Version 1511. This SDK also supports building Windows apps and desktop applications for Windows 8.1, Windows 8, Windows 7, Windows Vista, Windows Server 2012, Windows Server 2008 R2, and Windows Server 2008.

What version of Visual Studio is compatible with Windows 7?

The minimum operating system requirement for Visual Studio 2015 is Windows 7 with Service Pack 1 (or higher).


1 Answers

You can use the Windows 10 SDK to write Windows desktop applications compatible with Windows 7 and up. The minimum target version is controlled through preprocessor symbols (WINVER and _WIN32_WINNT). Set them to 0x0601 to target Windows 7 and up.

See Using the Windows Headers for details.

like image 134
IInspectable Avatar answered Nov 15 '22 07:11

IInspectable