Delphi CompilerVersion Constant

it2022-05-13  60

http://delphi.wikia.com/wiki/CompilerVersion_Constant

The CompilerVersion constant identifies the internal version number of the Delphi compiler.

It is defined in the System unit and may be referenced either in code just as any other constant:

if CompilerVersion = 20 then sCompilerName := 'Delphi 2009';

or in conditional compiler expressions:

{$if CompilerVersion > 18} // Delphi 2007 or later {$endif}

The CompilerVersion constant was introduced in Delphi 6 along with conditional expressions.

In earlier Delphi versions various compiler defined VERxxx symbols are used to determine compiler versions.

CompilerVersion values and the equivalent compiler defined symbols

for the Delphi versions in which the CompilerVersion constant is defined are:

CompilerCompilerVersion

Defined Symbol

Delphi XE324VER240Delphi XE223

VER230

Delphi XE22VER220Delphi 201021VER210Delphi 200920VER200Delphi 2007 .NET19VER190Delphi 200718.5VER185Delphi 200618VER180Delphi 200517VER170Delphi 8 .NET16VER160Delphi 715VER150Delphi 614VER140Delphi 513VER130Delphi 412VER120Delphi 310VER100Delphi 29VER90Delphi 18VER80

  

Borland Compiler Conditional Defines

http://delphi.wikia.com/wiki/Borland_Compiler_Conditional_Defines

Product NameVersion

Conditional Define

Embarcadero RAD Studio XE317.0VER240Embarcadero RAD Studio XE216.0VER230Embarcadero RAD Studio XE15.0VER220Embarcadero RAD Studio 201014.0VER210CodeGear C++ Builder 200912.0VER200CodeGear Delphi 2007 for .NET11.0VER190CodeGear Delphi 2007 for Win3211.0VER180 and VER185Borland Developer Studio 200610.0VER180Borland Delphi 20059.0VER170Borland Delphi 8 for .NET8.0VER160 *C++BuilderX ? ?Borland C#Builder1.0VER160 *Borland Delphi 77.0VER150Borland Kylix 33.0VER140 **Borland C++Builder 6 ?VER140 **(!!)Borland Kylix 22.0VER140 **Borland Delphi 66.0VER140 **Borland Kylix1.0VER140 **Borland C++Builder 5 ?VER130 ***Borland Delphi 55.0VER130 ***Borland C++Builder 4 ?VER125Borland Delphi 44.0VER120Borland C++Builder 3 ?VER110 ****Borland Delphi 33.0VER100Borland C++ 5 ? ?Borland C++Builder 1 ?VER93Borland Delphi 22.0VER90Borland C++ 4.5 ? ?Borland Delphi1.0VER80Borland C++ 4 ? ?Borland Pascal 77.0VER70Borland C++ 3.1 ? ?Turbo Pascal for Windows 1.51.5VER70Turbo C++ for DOS 3 ? ?Borland C++ 3 ? ?Turbo C++ for Windows 3 (Win16) ? ?Turbo Pascal for Windows 1.01.0 ???Borland C++ 2 ? ?Turbo Pascal 66.0VER60Turbo C++ for DOS ? ?Turbo C for DOS 2 ? ?Turbo Pascal 5.55.5VER55Turbo C for DOS 1.5 ? ?Turbo Pascal 55.0VER50Turbo Pascal 44.0VER40Turbo C for DOS ? ?Turbo Pascal 33.0 ???Turbo Pascal 22.0 ???Turbo Pascal 11.0 ???

 

* This conditional define is shared by the Delphi compilers

used to build C#Builder 1 and Delphi 8, which do not natively support Delphi for Win32.

This define is used in the "IDE Integration Packs" that were released to Borland partners in order to allow IDE plugins like ModelMaker Code Explorer (http://www.modelmakertools.com/code-explorer/index.html) and Castalia (http://www.delphi-expert.com/castalia3) to be compiled.

** This conditional define is shared between C++Builder 6, Delphi 6, Kylix 1, 2, and 3

(Checking for the conditional define "LINUX" helps to determine whether the compiler is

Kylix or Delphi and "BCB" can be used to determine if C++Builder is being used).

*** This conditional define is shared with C++Builder 5

**** C++Builder 3.0 used VER110 (it had its own version of the Delphi compiler included).

 

转载于:https://www.cnblogs.com/shangdawei/archive/2013/04/27/3048073.html


最新回复(0)