C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28691
Number of posts: 94711

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
windows.h in C++ 2005 Posted by digitalrana on 19 May 2006 at 5:19 AM
hi,
iv bin programming in C++ intermittently for a while...i have some programs in C++ 6 which use #include <windows.h> or #include <windows>... they use it to perform console based operation such as clearing the screen, moving to a given console position, etc...im trying out the new C++ express edition for visual studio 2005, but when i move these programs across they come up with the error cannot...

fatal error C1083: Cannot open include file: 'windows': No such file or directory

i checked the include directory and i found that windows.h doesn't exist...does anybody know what replaced windows.h or where i can find information relating to changing this code to make it work now...

i can provide the source code if anyone wants to fix it for me, but i would preferrably like to know how to fix it myself...

thanx in advance
Report
Re: windows.h in C++ 2005 Posted by tsagld on 19 May 2006 at 7:23 AM
: hi,
: iv bin programming in C++ intermittently for a while...i have some programs in C++ 6 which use #include <windows.h> or #include <windows>... they use it to perform console based operation such as clearing the screen, moving to a given console position, etc...im trying out the new C++ express edition for visual studio 2005, but when i move these programs across they come up with the error cannot...
:
: fatal error C1083: Cannot open include file: 'windows': No such file or directory
:
: i checked the include directory and i found that windows.h doesn't exist...does anybody know what replaced windows.h or where i can find information relating to changing this code to make it work now...
:
: i can provide the source code if anyone wants to fix it for me, but i would preferrably like to know how to fix it myself...
:
: thanx in advance

I run VS 2005 and found windows.h in the following folder:
Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include

Although I mainly use C#, I made a VC++ project and noticed the #include "stdafx.h" in the source-files. That probably assures all the necessary includes.
My project compiles fine.

Greets,
Eric Goldstein
http://www.gvh-maatwerk.nl


Report
Re: windows.h in C++ 2005 Posted by stober on 19 May 2006 at 7:37 AM
you need to install the Windows Platform SDK. See the link posted on this page: http://msdn.microsoft.com/vstudio/express/visualC/default.aspx. There are instructions to show how to manually set up VC++ 2005 express after you download the SDK.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.