windows32 pre-compilation flag

I'm looking for pre-compilation flag for windows32.

is this the right definition?

#ifdef _WIN32
...
...
#endif
LVL 1
ofirgAsked:
Who is Participating?
 
Roshan DavisCommented:
Yes.
0
 
ofirgAuthor Commented:
who's define it?
0
 
Roshan DavisCommented:
That already defined in WinDef.h
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Roshan DavisCommented:
Sorry,
You have to made a different define and use that instead of _WIN32,

thats the better...
0
 
ofirgAuthor Commented:
who's define it?
0
 
Roshan DavisCommented:
You have to define it in "Settings" of your project or in stdafx.h

Do not define _WIN32 any another name like yourprojectprefix_WIN32
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.