Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

windows32 pre-compilation flag

Posted on 2002-06-25
6
Medium Priority
?
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 200 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

721 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