Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Compiler directive WIN32

Posted on 1998-08-10
1
Medium Priority
?
193 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 80 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses

916 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