Cannot open include file: 'VersionHelpers.h': No such file or directory

前端 未结 3 1295
你的背包
你的背包 2021-01-12 02:50

I\'m trying to use IsWindows7SP1OrGreater function, declared in VersionHelpers.h header. And I get:

\'VersionHelpers.h\': No such file or directory

3条回答
  •  误落风尘
    2021-01-12 03:24

    In order to use the version helpers macros, you need to be targetting the v120 platform toolset this ships with VS 2013. If you create a an empty project in VS 2013 then you will find that an include of VersionHelpers.h works fine.

    If you are targetting v120 then I guess something else is misconfigured in your project. Start with a brand new project and convince yourself that #include works as expected. Then try to find out what's different between your troublesome project, and the plain vanilla project that works.

提交回复
热议问题