Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Automation
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00849132
Message ID:
00849240
Views:
19
Thanks for the link Larry. I am going to study that white paper.

What does not seem obvious is how A VFP COM, implementing EventHandler(), raises an event AT the [VFP] client that instanciated it.

It seems EventHandler's domain does not extend beyond the COM. Is there something I am missing? How is a COM event via EventHandler, communicated to it's client?

Right now [it seems], the only way to do that is COMRETURNERROR. I nned to read - but what would be really nice would be an "ON EVENT" and a "COMRETURNEVENT". Why beat around the bush with all this "only fires inside a com that contains an OCX control"?

>>Anybody have or know where I can get any samples regarding Excel and BindEvent()? OR, any way I can keep track of a VFP object referencing Excel.Application when the user closed Excel? Thanks,
>>
>>jfh
>
>John,
>BindEvent only works with VFP internal events , not COM events. For that you need to use the EventHandler function. See Calvin Hsia's artcle http://msdn.microsoft.com/library/en-us/dnfoxgen7/html/vfpandcom.asp for an example of using VFP with Excel.
>
>HTH.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform