| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 10)

Chapter 53

Foreign Functions


Describes how to call C or C++ foreign functions from within G2.

Overview
Foreign Functions Examples
Creating a Sample Foreign Image
Calling the Sample Foreign Functions
Using Foreign Functions
Creating a Foreign Function Template File
C and C++ Data Types and Character Conversion
Using the Overlay Utility through the Makefile
Completing the Makefile Global Variables
Running the Makefile
Using the Overlay Utility on OpenVMS
OpenVMS and VAX/VMS Options File
Starting and Connecting to the Foreign Image
Starting the Foreign Image as an External Process
Connecting to an External Process Foreign Image
Starting a Foreign Image From Within G2
Connecting to a Foreign Image with a G2-Init File
Declaring a Foreign Function in a KB
Providing the Name of the C Function
Setting the Timeout Interval
Handling Possible Name Collisions
Using a Foreign Function
Disconnecting from the External Foreign Function
| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 10)

Copyright © 1997 Gensym Corporation, Inc.