RTL/VCL cover file

Top  Previous  Next

User interface > Translation options > Input options > RTL/VCL cover file

The Visual Component Library (VCL) is a Delphi library for an easy development of Windows user interfaces (GUI). This library exists in Delphi only. A translation to C# hardly would be possible, even with Delphi2C#, because the code of the VCL is a link to the Windows API and Delphi2C# would have to know the exact specifications of this API to make a correct translations. Many parts of the RTL are also hardly translatable.


The use of an RTL/VCL cover file allows to simulate code parts that are difficult to translate and then to substitute them in C#. A very simple would be the following:



unit VclCover;




//uses ...;




TCustomControl = class


Width: Integer;

Height: Integer;

Left: Integer;

Top: Integer;






If then the following code would have to be translated:




  Control : TCustomControl;



  Control.With := ...  



Delphi2C# would know by use of the cover file that on the right side of the assignment an integer is expected. All symbols, that Delphi2C# tries to look up in files that are used for the translation, but are not to be translated themselves, are tried to be looked up in the cover file first. If the symbol is found there a further lookup isn't made.





This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content