General information
Category:
Windows API functions
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only