Public Group

# VC++ cannot include windows.h (Visual Studio Express)

This topic is 4872 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Have just started using VC++ for the first time, bizarrely, cannot seem to include windows.h from VC++ (visual studio 2005 express edition)
#include <windows.h>

using namespace System;

int main( array<System::String ^> ^args )
{
return 0;
}


when I 'build solution' it says:
Quote:
 fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
I thought this would one of the files that would definitely be included in any VC++ project. I've very little expreince with the vs/vc++ ide and cannot even figure out how to include a .lib file, so please spell things out to me. I'm trying to get this file because I want to use ::LoadLibrary( ) - which I think is defined in windows.h thx

##### Share on other sites
MSVC .NET 2005 Express Edition doesn't come with the Platform SDK. You need to install that seperately (and then mess with a few settings to get MSVC to recognize it). The instructions for doing so should be on the MSVC .NET 2005 Express Edition download page.

##### Share on other sites
Hi bud,

First you should check what directories Visual Studio is looking in.

Tools->Options->Projects->VC++ Directories.

Copy those entries if there are any, into a reply.

ace

RTF Dox.

##### Share on other sites
Quote:
 Original post by TheMeatManRTF Dox.

STFU TMM
do you know how sprawling the 'Dox' are for VS & dotNet - esp when you're new to a language and dont know what the problem might be?

U T1T

##### Share on other sites
Gentlemen, please keep the conversation civil. Timberl, for future reference, try to ignore the trolls on the board. They just get you into trouble that you don't want to be in.

---
Michael Tanczos

##### Share on other sites
I apologize for my off-handed comment, woke up with a bad hangover.

Microsoft has made it extremely easy to set up and use the Express tools.
http://msdn.microsoft.com/vstudio/express/visualc/learning/default.aspx

For non-video: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

Again, let me apologize for the comment, this had just been the Nth comment on the Mth fourum that I have been to where people rush to download VC++ Express but then don't do the next step of using the readily available, and simple, resources to get started.

Good luck!

##### Share on other sites
Quote:
 Original post by Michael TanczosGentlemen, please keep the conversation civil. Timberl, for future reference, try to ignore the trolls on the board. They just get you into trouble that you don't want to be in.---Michael Tanczos

okay

##### Share on other sites
Marvellous guys, since getting the platform SDK etc. (and then spending many hours trying to configure it) I've got it working - at bitter last. Thanks a million

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 14
• 11
• 28
• 15
• 39
• ### Forum Statistics

• Total Topics
634835
• Total Posts
3019540
×