Calling DLLs from COBOL

ACUCOBOL-GT programs can call native code subroutines located in DLLs. This includes files with a ".dll" extension and Windows system files with a ".drv" or ".ocx" extension. You do not need to relink the runtime to access the routines in DLLs.

To use a routine located in a DLL, you must first load the DLL in one of three ways:

Note: If you are loading a DLL that contains Windows API functions, please see Accessing the Windows API. This topic contains some specific guidelines and procedures that you should know when calling Windows API functions.