Tasks : Accessing external functions : Calling DLL functions

Calling DLL functions
You use the parts within the External Functions category to access or call functions written in either C or COBOL. The C or COBOL features must be loaded into VA Smalltalk before you can use these parts.
In addition to providing the steps for calling DLL functions, the following information is also available:
Steps for calling DLL functions
1.
If you choose the C External Function part, you must have access to a header (.H) file defining the data types used by the function. If you choose the COBOL External Function part, you must have access to a copy library file defining the record formats used by the function.
2.
Double-click on the part to open its Settings window and use the DLL tab to identify the specifications for the DLL that contains the external function.
3.
a.
On the Record tab, manually build the parameter list by parsing the C-header file or the COBOL copy library file for the external function.
b.
1.
Automatically build the parameter list by parsing the C-header file or the COBOL copy library file for the external function.
2.
4.
Select OK on the Settings window.
5.