Programming with Mixed Languages

Mixed-language programming is the process of building programs in which the source code is written in two or more languages. It allows you to:

Mixed-language programming is possible among the 32-bit languages Visual Fortran, Visual C/C++, Visual Basic, and MASM. Mixed-language programming in Win32 is different from that in 16-bit environments, and in many respects it is easier.

To properly create mixed-language programs, rules must be established for naming variables and procedures, for stack use, and for argument passing among routines written in different languages. These rules, as a whole, are the calling convention.

A calling convention includes:

This section provides information on the calling conventions available when writing routines written in Fortran, C, Visual C++, Visual Basic, and ia32 assembly language. It is organized into the following topics: