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 is frequently worthwhile because it lets you:

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, but in many respects it is easier.

Mixed-language programming is the process of establishing rules 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 gives you the information you need to establish a calling convention among routines written in Fortran, C, Visual C++, Visual Basic, and assembly language. It is organized into the following topics: