Solved

windows32 pre-compilation flag

Posted on 2002-06-25
6
228 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

747 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

13 Experts available now in Live!

Get 1:1 Help Now