Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPx+Ctl32+CodeBook Declare DLL error in exe not VFP IDE
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Database:
Firebird
Application:
Desktop
Miscellaneous
Thread ID:
01365915
Message ID:
01366198
Views:
26
This message has been marked as the solution to the initial question of the thread.
You obtain the address for the original window procedure for the window defined by handle _vfp.HWnd

This._WindowProc = apiGetWindowLong(_vfp.HWnd, GWL_WNDPROC)

The handle is a number. For example, the moment you call the GetWindowLong the value is N.

Could you verify that:

1) The same handle N is used when you call the CallWindowProc -- nhWnd parameter must be equal to N.

2) _vfp.HWnd is still equal to N and does not change through the session.

* * *
Btw, is the main VFP window is visible when you run your application? Also I would check the validity of windows involved in the CallWindowProc call using this function

DECLARE INTEGER IsWindow IN user32 INTEGER hWindow

It returns non-zero value for valid window handles.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform