Solved

windows32 pre-compilation flag

Posted on 2002-06-25
6
233 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 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
Technology Partners: 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!

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
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. …
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

739 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