I'm trying to resolve some issues with DLL conflicts by using the Windows API calls to LoadLibrary, and GetProcAddress. I'm able to get a handle to the instance of the DLL by using LoadLibrary, but cannot get a handle to the internal processes of the DLL using GetProcAddress. I'm also wondering how I'm going to call these methods once I get the pointer? Does anyone have any experience using these functions?
01 DLL-INSTANCE PIC X(4) COMP-N.
01 PROCESS-POINTER PIC X(4) COMP-N.
USING BY REFERENCE "C:\CSL\CloudSyncLib.dll",
USING BY REFERENCE DLL-INSTANCE
BY REFERENCE "CSL_InitInterface"