Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM+ Loosely Coupled Events
Message
From
16/03/2001 15:57:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM+ Loosely Coupled Events
Miscellaneous
Thread ID:
00486116
Message ID:
00486116
Views:
48
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
Map
View

Click here to load this message in the networking platform