Advertisement Jump to content
Sign in to follow this  

Visual C++ 2005 beta 2 issue

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

Until now I worked with the visual c++ 6, Now I installed the 2005 beta 2 and when I try to compile a project I get the error the windows.h cannot be found. After I checked I saw it doesn't exists in the include file. Does visual c++ beta2 don't support naturally a win32 applications or there is a newer include file I don't know of ? Thanks

Share this post

Link to post
Share on other sites
Did you try to compile from the IDE or the command line? I tested some Win32 code with the VC++ 2003 Toolkit's command prompt and there was no problem (because it still includes some Win32 headers and libraries), but I have yet to test it with the VC++ beta 2 stuff. I'm not sure what option you'd have to play with in the IDE, but you should be able to compile Win32-related code in any version of VC++ as long as you don't use managed code in the same file and as long as you don't compile it to go along with the Common Language Runtime.

EDIT: You're right; the include folder doesn't have "windows.h". The way I went around this is to copy the include folder from a previous version so that my source code would have a line like the following:

#include "vc98\windows.h" //where 'vc98' is vc98's include folder, renamed

Also, to link .lib files, I do this at the command line:
c:\cl ......... /link "vc98\user32.lib"
...where 'vc98' here is vc98's lib folder, renamed and inserted in the current version's lib folder

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!