Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is MSComm.OnComm firing?
Message
From
30/11/1999 14:49:52
 
 
To
30/11/1999 14:43:46
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00296966
Message ID:
00297061
Views:
44
>>VFP doesn't sink ActiveX events - the event fires, but since VFP doesn't know about it, VFP doesn't take any action based on it. VFPCOM allows you to sink ActiveX events in VFP using VFP code - lets VFP respond to the occurance of the OnComm event.
>>
>>Whether or not VFP does anything, the event still fires.
>
>You could do this before VFPCOM with ActiveX controls, because the OLE container lets you bind code to these events. VFPCOM bought us the ability to do this with COM objects that weren't hosted in an OLE container (like any COM object instanciated with CREATEOBJECT).
>
>Semantics, I guess, but an ActiveX control has a UI, and if it is being used on a VFP form, it is hosted in an OLE container.

No, because you can have an ActiveX control (hmmm...WebBrowser perhaps?) that has events that can be sunk with VFPCOM, but if VFPCOM is not used, VFP isn't aware of the event firing...
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