Jump to content
  • Advertisement
Sign in to follow this  
Stevieboy

vc2005 beta2 - can't find windows.h

This topic is 4865 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, I've just done a reinstallation of windows, I've reinstalled vc2005 beta2, and also changed the settings as the vc 2005 (or platform sdk), web page says, but when I try to compile a program it says it can't find windows.h. I think (if it isn't anything else), it might be VCProjectEngine.dll.express.config file which I got wrong? If possible can any one post what this file should look like? I've just done a test with a console app, that seems to work ok, but as soon as I add "windows.h" to it, the same thing happens? ps, I'm also getting an error with xlocale?

Share this post


Link to post
Share on other sites
Advertisement
Have you definitely updated and/or installed the platformSDK?

windows.h is a PSDK component - and the PSDK was a seperate download/install from the VS2005 beta's iirc.

hth
Jack

Share this post


Link to post
Share on other sites
Hi, thanks for the reply, that page is the one I was working from, the only things I can think of are that I installed the psdk before vc2005, but on that page it says to install vc2005 first, the only other thing is that I've got step 3 wrong, which are the changes to VCProjectEngine.dll.express.config.
It all worked ok before, but that time the other (non sp2) psdk had been installed first, (before the sp2 one).

I did a search for windows.h, and it was in the psdk folders, when I did an #include, with the full path name, the compiler then couldn't find files that windows.h itself included, such as windef.h, I think maybe it can't find some sort of starting point, or something?

Share this post


Link to post
Share on other sites
windows.h itself includes files, so you need to set up the paths properly. Installing PSDK after VS should have done this for you. I don't have that version of VisualStudio, but it's roughly the same in all.

Usually there is an Options menu option that will take you to a Project Includes. In VS2005 Beta 2 it's:
Tools (menu) -> Options...
Projects and Solutions -> VC++ Directories

Change the "Show directories for" to Include Files. Add a new one and give it the path to the PSDK include directory. Move it to the top of the list.

Change to Library Files and add the PSDK libs directory.

That should be it.

Share this post


Link to post
Share on other sites
Quote:
Usually there is an Options menu option that will take you to a Project Includes. In VS2005 Beta 2 it's:
Tools (menu) -> Options...
Projects and Solutions -> VC++ Directories

Change the "Show directories for" to Include Files. Add a new one and give it the path to the PSDK include directory. Move it to the top of the list.

Change to Library Files and add the PSDK libs directory.


In Visual Studio Express Beta 2 the option you are talking about has been removed. The only way to set the include directory path is by modifying the VCProjectEngine.dll.express.config file.

Edit: here is another way to add the PSDK Include directory:

http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2995

[Edited by - Calin on July 25, 2005 2:48:56 PM]

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!