cplussharp / graph-studio-next

GraphStudioNext is a tool for developers to build and test DirectShow Graphs
355 stars 94 forks source link

Recover code compatibility with Windows SDK 7.1 #292

Closed roman380 closed 8 years ago

roman380 commented 8 years ago

While fix for #285 is good, it breaks builds against Windows SDK versions earlier than 8.0. And it happens, for instance, when the project is built with Visual Studio 2013 and v120_xp toolset.

roman380 commented 8 years ago

Builds with Visual Studio 2013 and newer would not hardcode specific versioning macros (e.g. _WIN32_WINNT, WINVER) and instead inherit that from current SDK unlocking new definitions smoothly. That is, the template for new projects suggest. VS 2012 and older are left to use original scheme for compatibility reasons (not sure where #include <sdkddkver.h> started from exactly).