Solved

windows32 pre-compilation flag

Posted on 2002-06-25
6
230 Views
Last Modified: 2010-04-01
I'm looking for pre-compilation flag for windows32.

is this the right definition?

#ifdef _WIN32
...
...
#endif
0
Comment
Question by:ofirg
  • 4
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 50 total points
ID: 7106999
Yes.
0
 
LVL 1

Author Comment

by:ofirg
ID: 7107033
who's define it?
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7107054
That already defined in WinDef.h
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7107075
Sorry,
You have to made a different define and use that instead of _WIN32,

thats the better...
0
 
LVL 1

Author Comment

by:ofirg
ID: 7107098
who's define it?
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7107105
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now