Jump to content
  • Advertisement
Sign in to follow this  
Alundra

Windows.h Issues Since Visual Studio 2015 Update 3

This topic is 782 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi !

Since I updated to Visual Studio 2015 Update 3 I have compilation issue for Windows.h stuff like TIMECAPS and InitializeConditionVariable.

To solve the TIMECAPS issue I have to include "timeapi.h", it was not needed before.

To solve the InitializeConditionVariable and other of the same kind I have to set "_WIN32_WINNT=0x0600" as compilation macro.

Is it normal ?

Thanks

Share this post


Link to post
Share on other sites
Advertisement
InitializeConditionVariable was added with Vista, so it's normal for it to require the minimum target version to be set to that. It's odd that you had to manually set it since the default value is higher than that.
Also, if you have WIN32_LEAN_AND_MEAN or MMNOTIMER defined, windows.h will not include timeapi.h for you.

Share this post


Link to post
Share on other sites

OH ! Apparently it's because one third party set _WIN32_WINNT to 0x0500 and set WIN32_LEAN_AND_MEAN

I modified the header of this third party and now all compile ok without additional include or needed to set one macro on compilation

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!