Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Codage, syntaxe et commandes
Oziel,
>I have a COM component (created w/ VFP). I want to run the component ascyn, when the procedure completes I want to raise an event; this event will be binded to another VFP object (no COM) with the VFPCOM util.
>
>Will calling a method give me the same results?
I don't think you can acconplish this thing the way you want to, but I'll throw in some suggestions.
1. the async point. Natively this is not supported, but you might try using timers in the COM object, which may start code independend from the owner of the COM object.
2. Raising events. you can't use the VFPCOM utility to capture VFP events, so this will be useless. But it think there is another way to to accomplish more or less the same. If you pass an object (by reference) to a COM object, and you change a property of that object on which an assign method (or event) exist it may fire this event on the client side (though I'm not completely sure, you've got to test this yourself).
Good luck,
Walter,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement