dynamic dll import (with classmate)

This forum is the place to discuss issues related to ReportPro, Xs2Ado, Vo2Ado, bBrowser and other 3rd party products
Post Reply
User avatar
SHirsch
Posts: 286
Joined: Tue Jan 30, 2018 8:23 am
Location: Germany

dynamic dll import (with classmate)

Post by SHirsch »

Hi all,

in VO I loaded a dll dynamically like this:

Code: Select all

hDllInst := cmLoadLibrary(sDllFileName)
IF hDllInst == NULL_PTR
   RETURN FALSE
ENDIF
pDllName := cmGetProcAddress(hDllInst,"_DLLNAME")
IF pDllName == NULL_PTR
   RETURN FALSE
ENDIF
....
Now that all my framework, plugin dlls and applications are VOXPorted I try to load the plugin dlls. cmLoadLibrary seems to work since it returns a pointer != NULL. But cmGetProcAddress returns NULL_PTR. How can a load the function pointers? Or is there any other simple approach to load dlls. I have dozens of plugin dlls. So I try to avoid refactoring all of them (for now).

Regards,
Stefan
Post Reply