External Symbols (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Delphi Compiler Directives (List) Index

Type

Parameter

Syntax

{$EXTERNALSYM identifier [ 'typeNameInHpp' [ 'typeNameInHppUnion' ]]}



Used when generating header files for consumption by C++Builder.

The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header files generated for C++. If an overloaded routine is specified, all versions of the routine are excluded from the header file.

The 'typeNameInHpp' and 'typeNameInHppUnion' fields work as follows:

  • You can specify both of these two, or one of them, or neither of them.
  • 'typeNameInHpp' is the name that is emitted when using the symbol.
  • 'typeNameInHppUnion' is the name that is used if the symbol is declared inside a union (variant section of Pascal record type).

See Also