Information générale
Catégorie:
Gestionnaire de projet
>I have about 80 instances of that object with about 50-75 property defined in each as well as about 5-10 methods will with code in each. This is our biggest object. So, I guess the only approach would be COM event binding. I just don't know presently how to achieve that. Could you explain a little bit more about what I should expect to achieve that?
I've used it previously only with non-vfp COM, so I am not sure that a COM object created by vfp can *define* an interface other clients are capable to eventbind to.
If you fire up the object browser and load shDowVw.Dll (still one of my most often used cases), then expand the interfaces node, you'll see a few defined interfaces.
If you drag and drop one of these interfaces onto an open prg-editor window, the barebone event handling structure will be created, and you can fill in your code, which fires as the events happen to the COM object.
A few topics to read in the help are:
"Visual Foxpro and advanced COM" (includes the excel example I mentioned to you in another thread a few days ago), "define class - implements", "event handling for COM events", "Eventhandler".
HTH
thomas
Précédent
Suivant
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