General information
Category:
COM/DCOM and OLE Automation
Title:
COM+ Loosely Coupled Events
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only