• Advertisement
Sign in to follow this  

Using Visual C++

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

I installed Visual C++ Express Edition to use to try out some Win32 and Directx code. When I compile it, it can't find the windows.h header file. How do you set up the directories for Visual C++?

Share this post


Link to post
Share on other sites
Advertisement
Which version? 2005 requires the Platform SDK for Win32 development. 2008 should come with this installed, so you may have an installation or configuration problem.

Share this post


Link to post
Share on other sites
The link for the Platform SDK is Platform SDK

I don't know if there is a newer version out, but this is the one I used, and it worked for me.

Share this post


Link to post
Share on other sites
Quote:
Original post by Nikko_Bertoa
Express Edition es really bad!


I disagree. Sure, having to install the platform SDK is a mild annoyance, but it's a one time deal and isn't complicated. Other than that, what justification do you have for your claim that it is "really bad"?

Share this post


Link to post
Share on other sites
Quote:
Original post by Nikko_Bertoa
Express Edition es really bad!!!!!
I disagree, and would suggest that rather than "really bad" a more appropriate term might be "best freely available IDE available for Windows".

Care to share with us what it is that makes you dislike it?

Share this post


Link to post
Share on other sites
Visual C++ Express Edition:

- DB <= 4GB
- Only uses 1 CPU
- Only uses 1 GB RAM
- Haven't SQL Agent
- Only for non-commercial purposes


You think I hate Microsoft and Visual Studio, but you are wrong. I use Visual C++ Professional Edition and i love it :)

Share this post


Link to post
Share on other sites
Quote:
Original post by Nikko_Bertoa
Visual C++ Express Edition:

- DB <= 4GB
- Only uses 1 CPU
- Only uses 1 GB RAM
- Haven't SQL Agent
- Only for non-commercial purposes


You think I hate Microsoft and Visual Studio, but you are wrong. I use Visual C++ Professional Edition and i love it :)

- Most people don't need to use databases for game development
- Even the professional version doesn't use more than one CPU as far as I know? (Which is what I use too)
- Wrong. It'll use as much RAM as it needs, not just 1GB
- Most people don't need SQL for game development
- Wrong. You can do what you like with the compiled file, you can sell it if you like

Share this post


Link to post
Share on other sites
So i installed it, but it still won't compile. Do I have to set up the directory or something?

Share this post


Link to post
Share on other sites
I think (from memory, sorry) that there's an entry it adds to the start menu (under Programs->Platform SDK or something similar) that is something along the lines of 'Register directories with Visual Studio'. That seemed to work, even for the express edition for me.

Sorry for the vagueness, but I hope this helps somewhat.

Share this post


Link to post
Share on other sites
Yea actually i have 2 of those folders in start menu, I guess I accidently downloaded both. So which one do I use?
Microsoft Platform SDK for Windows Server 2003 R2
Microsoft Platform SDK for Windows Server 2003 SP1

Share this post


Link to post
Share on other sites
Why don't you use the Visual C++ Express 2008! It replaces the 2005 stuff, works better and comes with the platform SDK preinstalled.

Share this post


Link to post
Share on other sites
Quote:
Original post by Trenki
Why don't you use the Visual C++ Express 2008! It replaces the 2005 stuff, works better and comes with the platform SDK preinstalled.

Yeah only reason to stick with 2005 is if you are using XNA but that doesn't sound like the case here?


Share this post


Link to post
Share on other sites
Quote:
Original post by TheUnbeliever
Quote:
#include <windows.h> Correct!!!!

#include "windows.h" Incorrect!!!!!


You are wrong.


Actually, he's correct. The standard for dealing with header files in angle brackets are implementation-defined according to K&R and Stroustrup, and considering you're using Microsoft's implementation with Microsoft's compiler on Microsoft's operating system, they have the final say, and officially from Microsoft, it's #include <windows.h>.

Share this post


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

  • Advertisement