xsharp.eu • dynamic dll import (with classmate)
Page 1 of 1

dynamic dll import (with classmate)

Posted: Thu Apr 12, 2018 9:42 am
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