Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
External events
Message
From
19/08/1999 10:33: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:
00255267
Views:
11
>>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.

Thank you.
Previous
Reply
Map
View

Click here to load this message in the networking platform