Board index » delphi » $IFDEF Delphi Version No. Defines for D3, D4, and D5

$IFDEF Delphi Version No. Defines for D3, D4, and D5

Does anyone know the Delphi version number defines to use in $IFDEF conditional
compiler statements to specify for Delphi 3, 4, and 5.

Thanks in advance for any help.

Alan Lloyd
alangll...@aol.com

 

Re:$IFDEF Delphi Version No. Defines for D3, D4, and D5


I lifted these from D Baldwin's include :-

{$ifdef ver93}     {C++Builder 1}
{$Define CppBuilder}
{$endif}

{$ifdef ver100}   {Delphi 3}
{$Define ver100_plus}
{$endif}

{$ifdef ver110}    {C++Builder 3}
{$ObjExportAll On}
{$Define CppBuilder}
{$Define ver100_plus}
{$endif}

{$ifdef Ver120}   {Delphi 4}
{$Define ver100_plus}
{$Define ver120_plus}
{$endif}

{$ifdef ver125}    {C++Builder 4}
{$ObjExportAll On}
{$Define CppBuilder}
{$Define ver100_plus}
{$Define ver120_plus}
{$endif}

{$ifdef Ver130}   {Delphi 5}
{$Define ver100_plus}
{$Define ver120_plus}
{$endif}

This is from Delphi 4 Help - use Find VER120

Delphi defines the following standard conditional symbols

VER120  Always defined, indicating that this is version 12.0 of the
Object Pascal compiler. Each version has corresponding predefined
symbols; for example, version 10.0 has VER100 defined, version 12.5
would have VER125 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.

On 08 Apr 2001 06:11:34 GMT, alangll...@aol.com (AlanGLLoyd) wrote:

Quote
>Does anyone know the Delphi version number defines to use in $IFDEF conditional
>compiler statements to specify for Delphi 3, 4, and 5.

>Thanks in advance for any help.

>Alan Lloyd
>alangll...@aol.com

Other Threads