|
|
HP C++ Programmer's Guide: HP 9000 Series Workstations and Servers > Chapter 5 Inter-Language CommunicationCalling HP C++ from HP C |
|
Examples 5-3 and 5-4 show an example of calling HP C++ from HP C. Example 5-3 is the C++ module and example 5-4 is the C program. These examples illustrate the following points:
Figure 5-3 Example 5-3. A C++ Module Called by a C Program
Example 5-4 is a C program that calls the C++ module in example 5-3 to manipulate the object: Figure 5-4 Example 5-4. A C Program Calling a C++ Module
To compile the programs in examples 5-3 and 5-4, enter the following commands:
|
|