Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture Windows Messages sent from a API to VFP. HELP!
Message
From
20/01/2001 14:22:12
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00466118
Message ID:
00466250
Views:
11
>>You're going to need to write code in either VB or C to hook the Windows event loop for these two messages as a part of an ActiveX control, and have them generate events that you can then hook with VFP code using VFPCOM, or write an FLL to tie C code directly to VFP.
>
>Actually, it can be done with native VFP code, but it's as slow as molasses in West Haven this time of year. You can write a typical message loop, then punt the messages you don't want to VFP's queue. However, due to performance, it's not of much practical use if much user interaction goes on. I would probably go with Ed's suggestion of tying in with an FLL.
>
>Gary, if you want to go the FLL route, dig around the old threads. I posted code for doing this a while back (sorry, I don't remember when). I think I posted the VFP code, too.

How do you define a handler for the undefined WM_ messages in straight VFP? Inquring minds and all that?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform