Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New stuff gets included
Message
From
20/11/2004 04:19:21
 
 
To
20/11/2004 00:49:39
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00960731
Message ID:
00963176
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform