What was the RTL version number in Delphi 2009? - delphi

I presuppose it was 21.0, can someone confirm this assumption?

Version 21 is D2010. D2009 was version 20.

A complete list of RTLversion, compiler versions and Delphi version can be found in jedi.inc from de jedi project.
See here for details: http://wiki.delphi-jedi.org/wiki/JEDI_Help:Jedi.inc
This line specifies the RTL version:
RTL200_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 6.0 or higher
BDS 6.0 being Delphi 2009.

Related

Last Embarcadero C++Builder with classic compiler

What was the last version of C++Builder to contain the old classic compiler alongside the clang/llvm compiler?
According to the official documentation, the latest 11.0 Alexandria version includes both the classic Borland compiler and the newer clang-based compilers:
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/C%2B%2B_Compiler#Classic_Compiler
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/C%2B%2B_Compilers
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/BCC32
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Clang-enhanced_C%2B%2B_Compilers
To be clear, C++ Builder 11.0 contains the classic Borland C++ compiler for Win32 (bcc32.exe) applications. I have been using it since September.

Delphi XE8 uses which version of FastMM?

The latest FastMM version is 4.991
Delphi XE8 uses FastMM but which version is that?
The version of FastMM that ships as the built-in Delphi memory manager is a customised version that does not correspond to any version from the official FastMM code base. This customised version is cut down and has significantly reduced functionality.
Embarcadero maintains that customised version, and you can inspect it by examining the file <installdir>\source\rtl\sys\getmem.inc. To the best of my knowledge, the Embarcadero version was forked from the official project some time ago and there is a significant divergence.

Compile Delphi 7 code in Delphi xe2

I am working with another developer team and they have a code writen in Delphi 7 that doesn't work because of the functionality of TStringStream. So they ask me for help with this but I'm using Delphi xe2.
Is there any way to change the compiler options in my Delphi xe2 IDE and see the behavior of the code in Delphi 7?
There are no compiler settings that can be used to revert the compiler/RTL to pre-Unicode state.
If you want to compile in a Unicode Delphi, you have to make code changes. The other obvious option is to use a pre-Unicode Delphi.

Unicode version for Delphi (XE2)

We are upgrading our application from Delphi 2007 to Delphi XE2, which includes unicode support as well.
Our desired unicode version support is 3.2 and above.
Which Unicode version does Delphi (XE2) support?
Delphi does not support any specific Unicode version, it just relies on OS Unicode API. So check what Unicode version is supported by Windows.

How do I determine the Delphi version which created a Delphi project

I am trying to automatically figure out which Delphi version (of Delphi 5 to XE2 installed on my computer) to use to open a given project without upgrading that project by mistake.
Up to Delphi 7 there is a .dof file in .ini format for each project.
Delphi 5 does not have any entry which might help, but starting from Delphi 6 there is a [FileVersion] section which contains the following values:
Delphi 5: N/A
Delphi 6: 6.0
Delphi 7: 7.0
So I guess that settles that, since older Delphi versions do not concern me.
For Delphi 2005 and 2006 there is a .bdsproj file in XML format containing a version entry:
\BorlandProject\PersonalityInfo\Option\Option
In Delphi 2005 it looks like this:
<Option Name="Version" Type="String">1.0</Option>
In Delphi 2006 like this:
<Option Name="Version">1.0</Option>
So I could look whether the attribute "Type" exists and depending on that decide on Delphi 2005 or 2006.
Could somebody please have a look at his Delphi 2005 and 2006 projects and verify this difference? (Or do you maybe have got a better idea?)
edit: I just tried to verify this and found, that Delphi 2005 does not always add the Type-Attribute. So now I am stuck.
edit: Maybe the GUID stored there is unique to the Delphi version?
Delphi 2005: {87D03616-A4C7-4B5A-AF0F-0164EA60BC59}
Delphi 2006: {CFE1BEE6-6FDE-4241-8CA5-D38D14EAA768}
Somehow I doubt it, I am afraid that the GUID may represent different SKUs (Professional / Architect etc.). But maybe you could verify this?
Starting with Delphi 2007 there is a .dproj file in a different XML format. The Delphi 2007 format does not contain any version entry I could find, but from Delphi 2009 on there seems to be the following entry:
\project\PropertyGroup\ProjectVersion
These are the values I found in my .dproj files:
Delphi 2007: N/A
Delphi 2009: 12.0
Delphi 2010: 12.0
Delphi XE: 12.3
Delphi XE2: 13.4
If these are correct, I could reliably determine Delphi 2007, XE and XE2. But how do I distinguish between Delphi 2009 and 2010?
Also, these numbers look odd to me. Does anybody know whether there are any differences between the various updates of Delphi, e.g. did the original Delphi XE2 release maybe start with 13.0 and with each update increment the number after the dot? But if that's the case, how did Delphi XE get 12.3?
(There is a similar question How can I tell what version of Delphi was used to create a project but the single answer there is quite limited.)
Just in case anybody else needs this: I have just added a page to the Delphi Wiki which summarizes all answers and adds information for newer Delphi versions (currently up to Delphi 10.4.1).
I have now compared the .bdsproj files of Delphi 2005 and 2006 and there is no difference. Also, there is no difference between the .dproj files created by Delphi 2009 and 2010.
So the answer is:
if a .dproj file exists -> read \project\PropertyGroup\ProjectVersion
empty -> Delphi 2007
12.0 -> Delphi 2009 or 2010
12.2 or 12.3 -> Delphi XE1 (according to Uwe Schuster)
13.4 -> Delphi XE2
if a .bdsproj file exists -> Delphi 2005 or 2006
if a .dof file exists -> read [FileVersion]\version
empty -> Delphi 5 (or possibly older)
6.0 -> Delphi 6
7.0 -> Delphi 7
Unfortunately this does not allow me to write a program that automatically starts the correct Delphi version for a given project.
Maybe I will let the program ask the user if there are two possibilities and store his answer in a .ini file so the next time the program knows which Delphi version to start.
btw: The reason I was looking into this is that I have several times accidentally opened Delphi 2007 projects with a later Delphi version which upgraded it and I had to reverse these changes by hand. This has become so annoying that I wanted to prevent it by registering my own program as handler for .dpr files.
The version numbers in the *PROJ files are not bound to releases or updates and not all versions hit the streets.
Delphi XE RTM used version 12.2
Delphi XE Update #1 uses version 12.3
Delphi XE2 (RTM till Update #4) uses 13.4
Just installed XE3 (RTM).
14.3 XE3 (C++ & Delphi)
Today I find this topic googlin about Delphi edition (Standard, Professional, Enterprise).
Anyway I checked some .dof files spread in mine machine and there is facts related to ancient delphi versions:
if a .dof file exists -> read [Directories]/Packages
Delphi 3
[Directories]
OutputDir=
UnitOutputDir=
SearchPath=
Packages=VCLX30;VCL30;INETDB30;INET30;
Delphi 5
[Directories]
OutputDir=.
UnitOutputDir=.
PackageDLLOutputDir=.
PackageDCPOutputDir=.
SearchPath=
Packages=Vcl50;Inet50;Inetdb50;Vclx50;Indy50;
Additional info can be finded near end of dof file:
D3:
[Excluded Packages]
C:\Program Files\Borland\Delphi 3\Bin\DCLDSS30.dpl=Delphi Decision Cube Components
C:\PROGRAM FILES\BORLAND\DELPHI 3\BIN\DCLTEE30.DPL=Delphi TeeChart Components
D5:
[Excluded Packages]
$(DELPHI)\Bin\CorIde50.bpl=Borland Core IDE Package
$(DELPHI)\Bin\direct50.bpl=Borland Direct IDE Package

Resources