Hi. Im having a bit of trouble getting into my owkr DLLs from other programs. Here is one of the functions i use inside teh DLL:
Here is my main program where i load the DLL and try to use the funciton above:Code:#define DllExport __declspec( dllexport ) DllExport void SetHandle(HWND App) { ...some code.... }
the variable SetHandle is returning as NULL, so theres something weird happening in between the two. SDKModule is not null, so it obviously loaded it correctly. The DLL is in the same directory as my EXE.Code:typedef void (WINAPI *SDKSETHANDLE)(HWND); ..... SDKSETHANDLE SetHandle; SDKModule = LoadLibrary("MyDLL.dll"); SetHandle = (SDKSETHANDLE) GetProcAddress(SDKModule, "SetHandle"); SetHandle(Hwnd);
Cany anyone shed some light on this, im stumped!!!