Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
External events
Message
From
19/08/1999 09:55:41
 
 
To
19/08/1999 09:41:25
Monte Murdock
Universal American Mortgage Company
Clearwater, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00255245
Message ID:
00255252
Views:
12
>I remember at DevCon99 when Ken Levy created a program which contained the Events of another application such as IE. Does anyone remember how to do this?
>

Download VFPCOM from the Microsoft web site (msdn.microsoft.com/vfoxpro/downloads). VFPCOM is an add-on that works with VFP5 and VFP6, and contains an ActiveX server, that can bind code from a class to the equivalent events of an ActiveX control (it can export the available events and create a shell for a class for you to use to create the necessary wrapper as well, and has functions to move data between ADO recordsets and VFP cursors.)

Ken demonstrated using this with IE at DevCo, and I've used it to bind VFP code to the OnComm event of MSCOMM32. It's pretty straightforward to use; create a class with methods that match the events; instantiate the class, instantiate the ActiveX control, instantiate VFPCOM, and invoke VFPCOM's BindEvents method to tie the methods of the custom class to the matching events of the ActiveX server.
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