Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM+ Loosely Coupled Events
Message
De
16/03/2001 15:57:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
COM+ Loosely Coupled Events
Divers
Thread ID:
00486116
Message ID:
00486116
Vues:
49
I am trying to implement the loosely coupled events in COM+ by using an example
shown by Markus Egger at the last Devcon (Orlando), but so far it hasn't worked.

I am using VIsual Foxpro 7.0 from the Visual Studio .net beta 1

This is my event class. I compiled this as a multithreaded DLL I named WIFE,
and installed it as a new EVENT in a COM+ application (Named Household)
I created previously.

DEFINE CLASS Garbage as Session olepublic
PROCEDURE TakeOutGarbage(that as String)
ENDPROC
ENDDEFINE

This is my subscriber class, compiled into a multithreaded DLL I named husband, included
as a new component in the Household COM+ application, and then subscribed it to WIFE

DEFINE CLASS garbageman as Session olepublic
implements garbage in wife.garbage
PROCEDURE garbage_takeoutgarbage(what as String)
MESSAGEBOX(what,0,'Husband please empty: ')
ENDPROC
ENDDEFINE

IF I do this:

wife=CREATEOBJECT('wife.garbage')
wife.takeoutgarbage('KITCHEN TRASH')

I should get a messagebox, but I don't. Also, in the MMC I can see the WIFE object spinning,
but not the husband.

I have succesfully completed a similar example using Visual Basic DLL's, and by comparing, I suspect my failure has something to do with the names of the methods.

Thank you for your help,

Furio Filoseta
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform