Hello,
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.
CALL "LoadLibraryA@WINAPI"
USING BY REFERENCE "C:\\CSL\\CloudSyncLib.dll",
RETURNING DLL-INSTANCE
CALL "GetProcAddress@WINAPI"
USING BY REFERENCE DLL-INSTANCE
BY REFERENCE "CSL_InitInterface"
RETURNING PROCESS-POINTER
Thanks
Dave