Delphi RTL/VCL

Top  Previous  Next

Pretranslated C++ code > Delphi RTL/VCL

The user's Delphi code is based on the Delphi RTL and the VCL The translations of the user's code therefore also need translations of these Delphi libraries.

 

C++ Builder

 

The C++ Builder already has its own version of the Delphi RTL/VCL with C++ interface files.Delphi2Cpp provides some additional helper files.

 

Other Compilers

 

For other compilers one could think this isn't a problem, since this code can be translated by Delphi2Cpp as well as the own code. Unfortunately, it is not quite so simple. Particularly the file System.pas makes problems. System.pas is interlocked with the Delphi compiler narrowly. Some fundamental function are built into the the Delphi compiler and some parts are encoded in a special manner, which are interpreted correctly from the Delphi compiler only. For example the symbol "_AnsiStr" is used instead of "AnsiString" and the same applies to quite a number of other basic types.System pas further depends partly on assembler code. RTL/VCL sources also convert C++ API functions and types of the operating system such that they are conform to Delphi. In C++ this conversion isn't necessary, you better use the original API instead.. In addition some parts of System.pas aren't needed in C++ at all.

Therefore some parts of the Delphi RTL are pre-translated and prepared to use with the code translated by Delphi2Cpp. Because Embarcadero has the copyright of the Delphi RTL/VCL the translated parts cannot be shipped with the Delphi2Cpp installer. However as customer of Delphi2Cpp you certainly will have a license of Delphi too and as owner you also have the right to use the translated code. So you can get the C++ version of the Delphi code, if you provide a proof of your Delphi ownership. To get the code, please contact me.

 

Some helping code is already delivered with the Delphi2Cpp installer:

It is recommended to prepare some files of the Delphi RTL



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content