Calling Between 32-Bit and 16-Bit Code (C, OS/2)

You may need to call between 32-bit and 16-bit code if:

There are several ways you can work with 32-bit and 16-bit code:

The conventions and methods described apply for both C and C++ programs, except where noted otherwise. The VisualAge C++ compiler produces 32-bit code only. It does not produce 16-bit code.



Develop Virtual Device Drivers


Linking 32-Bit and 16-Bit Code
Pass Data Between 32-Bit and 16-Bit Code
Declare Segmented Pointers
Share Objects Between 32-Bit and 16-Bit Code
Call Back to 32-Bit Code from 16-Bit Code


16-Bit Calling Conventions
Differences Between the 16-Bit Calling Conventions
Restrictions on 16-Bit Calls and Callbacks
Return Values from 16-Bit Calls