Mixed-Language Calling Conventions

From RAD Studio
Jump to: navigation, search

Go Up to Declaration Syntax Index

Provides information on C++ mixed-language calling conventions.

This section describes C++ mixed-language calling conventions.

You can call routines written in other languages, and vice versa. When you mix languages, you have to deal with two important issues: identifiers and parameter passing.

By default, the compiler saves all global identifiers in their original case (lower, upper, or mixed) with an underscore "_" prepended to the front of the identifier. To remove the default, you can use the -u command-line option.

Note: The section Linkage tells how to use extern, which allows C names to be referenced from a C++ program.

Topics

cdecl, _cdecl, __cdecl

_fastcall, __fastcall

pascal, _pascal, __pascal

_stdcall, __stdcall

See Also