Top  Previous  Next

What is translated > Types

There are built-in types in Delphi and also new types can be defined in sections of a source file which begin with the type keyword.

The most simple form of a type definition is just to define another name for an existing type. E.g.:


WCHAR = WideChar;


In C++ the typedef keyword has to be used and the definition then goes the other way round:


typedef System::WideChar WCHAR;



Other types that can be defined in Delphi are:


Records, Classes and Interfaces


Enumerated types




Sometimes the order of type definitions has to be rearranged in C++. Also the order of lookup is different.

This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content