   How to define preprocessor directives in VC++ 2008?
  I'm using Visual C++ 2008 Express Edition, and when I surround my includes with #ifndef WIN32 it includes them anyway. Can someone explain what series of menus I must access to find the place where directives like this are defined?   
  ...The description of your problem has a disturbing lack of details about what the actual problem is. For instance, you haven't bothered to detail what platform you're compiling for where WIN32 WOULDN'T be defined....   ;Quote:Original post by Washu...The description of your problem has a disturbing lack of details about what the actual problem is. For instance, you haven't bothered to detail what platform you're compiling for where WIN32 WOULDN'T be defined....It should be clear from the fact that I'm using Microsoft Visual C++ that I am compiling for Windows. This is not a platform issue; I simply need to know where in the software you can set preprocessor directives. I fail to see what other details are necessary.EDIT: Here's someone who had the exact same issue:http://www.gamedev.net/community/forums/topic.asp?topic_id=418604People suggested he go to project settings → C/C++ → Preprocessor, but unfortunately that has changed since VC++ 2008, so I just need someone to tell me where it was moved.   ;  Isn't it _WIN32?  That's what I've always used.  My sources tell me yes, it is _WIN32.   ;Quote:Original post by OlivokserPeople suggested he go to project settings → C/C++ → Preprocessor, but unfortunately that has changed since VC++ 2008, so I just need someone to tell me where it was moved.It didn't move.   ;Quote:Original post by MikeTacularIsn't it _WIN32?  That's what I've always used.  My sources tell me yes, it is _WIN32.Indeed, but a library I'm using uses WIN32 without the underscore throughout its code. So my choices are to Find/Replace it in every file every time a new release comes out, or figure out where the setting is in VC++.   ;  If it's WIN32, then they want you to define it.  In which case MaulingMonkey showed you that you can, in fact, define preprocessor macros by going to Project->Properties->C/C++->Preprocessor and sticking WIN32 into the Preprocessor Definitions field.   ;Quote:Original post by MaulingMonkeyQuote:Original post by OlivokserPeople suggested he go to project settings → C/C++ → Preprocessor, but unfortunately that has changed since VC++ 2008, so I just need someone to tell me where it was moved.It didn't move.For some reason mine looks like this:http://imgur.com/2G33K.png   ;  Ok I see what I was doing wrong, I was looking at the solution's properties instead of the project's. Thank you all for the help.   