Jump to content
  • Advertisement
Sign in to follow this  
programmermattc

Windows.h and C++ 2005 - Fixed

This topic is 4318 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

Is there something special I need to do to get my #include <windows.h> to work in the express edition of C++ 2005? I've downloaded and installed the .NET SDK if that matters and went through the intructions on MSDN but it still is saying that Windows.h doesn't exist (No such file or directory).

Share this post


Link to post
Share on other sites
Advertisement
What he said.

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ will give you a link to the SDK you need (Windows Server 2003 R2 SDK), and make sure you point Visual C++ the SDK directories.

Share this post


Link to post
Share on other sites
Alright, next step.

First things first, search your computer for Windows.h. If it doesn't exist, you downloaded the wrong SDK.

Second, if it does exist, go into Visual Studio, and add the directory that Windows.h is in, into the include directories.

Sorry, I don't have Visual Studio at work, so doing this all from memory. Should be under Preferences->Includes.

You'll also want to add the libraries also.

(The SDK Install is suppose to do all this for you, but I've found that this isn't always the case).

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!