you should declare function as __declspec(dllimport) declaration of function HINSTANCE hi = LoadLibrary("your dll"
call here your function FreeLibrary(x); John Fill
ok, try somt other method:
HINSTANCE hi = LoadLibrary("your dll"
void (*pfunc)(void);
pfunc = GetProcAddress(hi,"MyFunction"
//see MyFunction can be a little mangled inthe dll.
//You should take it in consideration
pfunc();//executing MyFunction
FreeLibrary(x); John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.