Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window Handle
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00733188
Message ID:
00733192
Views:
16
John,

Does the DLL need to have the WindowHandle of the MAIN VFP Form or does it actually need the handle of the current Window that you are currently in?

Rich Simpson

> I need to pass in a window handle to a custom DLL, I am using the

> DECLARE INTEGER GetActiveWindow IN win32api as GetWinHndlfunction, 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.
Previous
Reply
Map
View

Click here to load this message in the networking platform