RAD Studio
ContentsIndex
PreviousUpNext
Mixed-Language Calling Conventions

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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!