Hi!
I'm trying to call a function from within a DLL by using this code:
This gives me the error "error C2064: term does not evaluate to a function" on the last line, when compiling in Visual C++. Any ideas what I have missed?
Regards
Henrik
I'm trying to call a function from within a DLL by using this code:
Code:
FUNCPNT* fP;
HINSTANCE hLib = LoadLibrary("the_api.dll");
if(hLib)
{
fP = (FUNCPNT*)GetProcAddress(hLib,"TheDLLFunction");
}
//the calling of the function
(*fP)();
This gives me the error "error C2064: term does not evaluate to a function" on the last line, when compiling in Visual C++. Any ideas what I have missed?
Regards
Henrik