Sign in to follow this  
programmermattc

Windows.h and C++ 2005 - Fixed

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this