DLL tab for COBOL External Function
Use the DLL tab to specify information about the DLL containing the external function.
You must specify information in these fields. Until you specify information in these fields, OK is not available.
Fields
File name
In the File name field, type the file name of the dynamic link library (DLL) containing the external function.
The DLL you specify can be in any directory, but it must be located in a directory listed in the appropriate path statement in the system configuration file for the application to find it at run time.
For Windows, the application uses the PATH statement. For Linux, the application uses the LD_LIBRARY_PATH statement.
Entry Point Name
In the Entry Point Name field, type the name of the entry point in the DLL you want to access. If the entry point is specified as an ordinal, type the number in this field without a leading #. You must specify an entry point name.
For additional information about linking your DLL, refer to your compiler documentation.
Entry Point Type
Under Entry Point Type, specify one of the following entry point types for the DLL:
o 16 bit
o 32 bit
Calling Convention
Under Calling Convention, specify one of the following calling conventions that was used when the DLL was compiled:
o C
o Pascal
For additional information about linking conventions used when compiling DLLs, refer to your compiler documentation.
This property does not apply to UNIX platforms.
For Windows:
The 16-bit calling conventions are not supported for Windows XP/2000.
Long operation
Select Long operation to specify that you want to start the external function on a thread other than the currently active thread.
By default, the external calls run as part of the currently active thread. If the external function you invoke requires a significant amount of time to run, then select Long operation.
Last modified date: 02/16/2021