Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Raise and event to VB?
Message
De
28/07/2002 10:41:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00683260
Message ID:
00683335
Vues:
17
>Hello all,
>
>I have a COM class library in VisFox 6 that I would like to use in VB and have the class raise an event that can be picked up in VB6.
>
>I'm pretty sure it's possible; but haven't a clue on the syntax to get started.
>
>Any suggestions are appreciated.
>
>TIA,
>
>Ed VanDuyne


Create your "event" as method in VFP class and call this method when it is needed to be "fired". As for VFP COM objects - capturing their events from VB is similar to capturing events from any COM object (ADO.Recordset for example)

HTH
____
Correction:
You cannot do that because VFP cannot make an event in a TLB file. All methods are exported to methods even if you implement a given interface...
Sorry for misinformation.
Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform