Hi
I need to pass in a window handle to a custom DLL, I am using the
DECLARE INTEGER GetActiveWindow IN win32api as GetWinHndl
function, if I call this function from the command window or a program the DLL works, if I try to call the GetActiveWindow() from a form I get a different handle number and the DLL returns a window handle error.
I can get the DLL to work at all in a runtime environment it always return a window handle error no matter where I get the window handle from.
The DLL was written by someone else I think they take the window handle and drill down to the main window which is then disabled while talking to the DLL.
Can anyone help?
Thanks
John