Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to bind event between ComVFP.EXE and AppVFP.EXE
Message
From
05/12/2003 09:26:36
Roman Segaud
Laboratoires Fortepharma
Nice, France
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
How to bind event between ComVFP.EXE and AppVFP.EXE
Miscellaneous
Thread ID:
00856240
Message ID:
00856240
Views:
98
Bonjour à tous,

Comment faire pour créer une méthode évènementielle dans un FORMSET qui réagisse lors de l'appel à une méthode d'un objet COM par un client VB ?

Ex.

Mon AppVFP fait :
oCOM_VFP = CREATEOBJECT(MonCOM)

Mon AppVB fait :
oCOM_VB = GETOBJECT(MonCOM)

puis

nRetour = oCOM_VB.Traitement()

et là je souhaiterais que cela "déclenche" dans mon AppVFP la méthode Traitement d'un formulaire actif.

J'ai essayé avec EVENTHANDLER mais comme c'est moi qui créé l'obet COM et que je n'ai pas d'interface évènementielle à implanter ça ne marche pas, j'ai ensuite essayé avec VFPCOM : oVFPCOM.BindEvents(oCOM_VFP,MonFORM) mais une erreur COM me dit que les deux objets ne sont pas du même type.

Si quelqu'un à une idée ?

Merci par avance,

Roman,
Microsoft MVP VFP
http://www.FoxForum.net
Reply
Map
View

Click here to load this message in the networking platform