>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
The use of the MessageBox() function is not supported in VFP COM Components (DLL based). For this reason, I created files whenever an event fired...
Regards,
Markus