Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

windows32 pre-compilation flag

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

is this the right definition?

#ifdef _WIN32
...
...
#endif
0
ofirg
Asked:
ofirg
  • 4
  • 2
1 Solution
 
Roshan DavisCommented:
Yes.
0
 
ofirgAuthor Commented:
who's define it?
0
 
Roshan DavisCommented:
That already defined in WinDef.h
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now