Solved

Compiler directive WIN32

Posted on 1998-08-10
1
184 Views
Last Modified: 2011-04-14
Where does this directive come from? I see it used in several Delphi-programs but can't figure out where it is set. The help-system stays silent about this directive.
0
Comment
Question by:detempel
1 Comment
 
LVL 4

Accepted Solution

by:
erajoj earned 20 total points
ID: 1361847
Hi,
Look in the help file for "Conditional symbols".

Delphi defines the following standard conditional symbols:

VER100      Always defined, indicating that this is version 10.0 of the Object Pascal compiler. Each version has corresponding predefined symbols; for example, version 10.1 would have VER101 defined, version 10.5 would have VER105 defined, and so on.

WIN32      Indicates that the operating environment is the Win32 API.

CPU386      Indicates that the CPU is an Intel 386 or better.

CONSOLE      Defined if an application is being compiled as a console application.

I.e. the Delphi compiler sets the WIN32 compiler directive when compiling a Win32 program automatically.

/// John
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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