Impact on notations

Top  Previous  Next

Pretranslated C++ code > Delphi directives to support C++Builder > Impact on notations

Types marked as EXTERNALSYM or NODEFINE are omitted from the generated C++ output when the corresponding option is enabled. External symbols are provided by the operating system. Therefore, the notation used by the operating system’s API must be specified in the list of notations.

 

For example, System.pas contains the following declaration:

 

  PByte         = ^Byte;        {$NODEFINE PByte}       { defined in sysmac.h }

 

In this case, PBYTE from Windows.h can be used. However, most symbols marked as NODEFINE do not have an equivalent in the operating system’s API. If the NODEFINE option is enabled, these symbols must therefore be defined in your own utility files.



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content