Delphi Compler Verssion Content

5297 ワード

http://delphi.wikia.com/wiki/CompilerVersion_コンサート
The Compler Version constant identifees the internal version number of the Delphi compler.
It is defined in the System unit and may be referenced eigther in code just as any other constant:
if CompilerVersion = 20 then
    sCompilerName := 'Delphi 2009';
or in conditional compler expressitions:
{$if CompilerVersion > 18} 
// Delphi 2007 or later 
{$endif}
The Compler Version constant was introducd in Delphi 6 along with conditional expressions.
In earlier Delphi versions various compler defined VERxxx smbors are used to determine compler versions.
Compler Version values and the equivalent compler defined smbors
for the Delphi versions in which the Compler Version constant is defined are:
Compler
Compler Version
Defined Symbol
Delphi XE 3
24
VER 240
Delphi XE 2
23
VER 230
Delphi XE
22
VER 20
Delphi 2010
21
VER 210
Delphi 2009
20
VER 200
Delphi 2007.NET
19
VER 90
Delphi 2007
18.5
VER 155
Delphi 2006
18
VER 180
Delphi 2005
17
VER 170
Delphi 8.NET
16
VER 60
Delphi 7
15
VER 150
Delphi 6
14
VER 140
Delphi 5
13
VER 130
Delphi 4
12
VER 120
Delphi 3
10
VER 100
Delphi 2
9
VER 90
Delphi 1
8
VER 80
  
Borland Compler Coditional Defines
http://delphi.wikia.com/wiki/Borland_Copiler_CoditionalDefines
Product Name
Version
Coditional Define
エバーキャストRADスタジオXE 3
17.0
VER 240
エバーキャストRADスタジオXE 2
16.0
VER 230
エバーキャストRADスタジオXE
15.0
VER 20
エバーキャストRAD Studio 2010
14.0
VER 210
CodeGear C++Buider 2009
12.0
VER 200
CodeGear Delphi 2007 for.NET
11.0
VER 90
CodeGear Delphi 2007 for Win 32
11.0
VER 180 and VER 155
Borland Developer Studio 2006
10.0
VER 180
Borland Delphi 2005
9.0
VER 170
Borland Delphi 8 for.NET
8.0
VER 60*
C+BuilderX
 ?
 ?
Borland C〓〓Builder
1.0
VER 60*
Borland Delphi 7
7.0
VER 150
Borland Kylix 3
3.0
VER 40**
Borland C+Builder 6
 ?
VER 140*(!)
Borland Kylix 2
2.0
VER 40**
Borland Delphi 6
6.0
VER 40**
Borland Kylix
1.0
VER 40**
Borland C+Builder 5
 ?
VER 130**
Borland Delphi 5
5.0
VER 130**
Borland C+Builder 4
 ?
VER 25
Borland Delphi 4
4.0
VER 120
Borland C+Builder 3
 ?
VER 10****
Borland Delphi 3
3.0
VER 100
Borland C++5
 ?
 ?
Borland C+Builder 1
 ?
VER 93
Borland Delphi 2
2.0
VER 90
Borland C++4.5
 ?
 ?
Borland Delphi
1.0
VER 80
Borland C++4
 ?
 ?
Borland Pascal 7
7.0
VER 70
Borland C++3.1
 ?
 ?
Turbo Pascal for Windows 1.5
1.5
VER 70
ターボC++for DOS 3
 ?
 ?
Borland C++3
 ?
 ?
Turbo C++for Windows 3(Win 16)
 ?
 ?
Turbo Pascal for Windows 1.0
1.0
 ???
Borland C++2
 ?
 ?
Turbo Pascal 6
6.0
VER 60
ターボC++for DOS
 ?
 ?
ターボC for DOS 2
 ?
 ?
ターボPascal 5.5
5.5
VER 55
ターボC for DOS 1.5
 ?
 ?
ターボPascal 5
5.0
VER 50
ターボPascal 4
4.0
VER 40
ターボC for DOS
 ?
 ?
Turbo Pascal 3
3.0
 ???
Turbo Pascal 2
2.0
 ???
Turbo Pascal 1
1.0
 ???
 
*This conditional define is shared by the Delphi complers
used to build C菗Builder 1 and Delphi 8,which do not native ely support Delphi for Win 32.
This define is used in the「IDE Integration Packs」that wereleased to Borland partners in order to allow IDE plugins ModelMaker Code Explorerhttp://www.modelmakertools.com/code-explorer/index.html)and Castalia(http://www.delphi-expert.com/castalia3)to be compled.
*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 compler is
Kylix or Delphi and「BBC」can be used to determine if C+Buider is being used)
**This conditional define is shared with C+Buider 5
***C+Builder 3.0 used VR 110(it had its own version of the Delphi compler included)