Hi ,
I have ex****ted the following function from a dll ,
extern "C" DECL_MYEX****TS LRESULT CALLBACK MouseProc(int nCode,WPARAM
wParam,LPARAM lParam);
//in my calling code , I tried to access the function as below:
static HINSTANCE hinstDLL;
typedef LRESULT (CALLBACK *MOUSEPROC)(int nCode,WPARAM wParam,LPARAM
lParam); // typedef a function pointer to access the function
hinstDLL =
LoadLibrary(_T("F:\\inter\\MyFirstDll\\debug\\MyFirstDll.dll"));
//hInstDLL is valid
MOUSEPROC hproc = (MOUSEPROC)GetProcAddress(hinstDLL,"MouseProc"); //
hProc
is still NULL
Question: I'm not able to access the function thru GetProcAddress. Is
the
typedef "typedef LRESULT (CALLBACK *MOUSEPROC)(int nCode,WPARAM
wParam,LPARAM lParam); " is corect or what is goin wrong here ?
Thanks
Sudhakar


|