markftwain
Technical User
- Jul 12, 2006
- 108
In trying to replicate previous examples, my use of eventhandler() always returns .f. I am using VFP 9 SP2 on Windows XP with service pack 3.
To be explicit, the below code was compiled as multi-threaded dlls, each in their own project. Windows Component Services was then manually used to add the dlls to the com+ interfaces. Activation of 'wife' is seen with the ball turning.
I receive no errors in the compilation or running. But, eventhandler() ALWAYS FAILS to complete, returning .f. Is there another way to do this?
Thank you.
* testing eventhandler
public owife,x
owife = createobject('wife.Garbage')
x=NEWOBJECT("myclass")
? eventhandler(m.owife,m.x)
return
DEFINE CLASS myclass AS session OLEPUBLIC
IMPLEMENTS Igarbage IN "wife.Garbage"
PROCEDURE Igarbage_TakeOutGarbage(what AS STRING) AS VOID
ENDPROC
ENDDEFINE
* wife code compiled into wife.dll and added to com+
define class Garbage as session olepublic
procedure TakeOutGarbage (what as string) as void
endproc
enddefine
To be explicit, the below code was compiled as multi-threaded dlls, each in their own project. Windows Component Services was then manually used to add the dlls to the com+ interfaces. Activation of 'wife' is seen with the ball turning.
I receive no errors in the compilation or running. But, eventhandler() ALWAYS FAILS to complete, returning .f. Is there another way to do this?
Thank you.
* testing eventhandler
public owife,x
owife = createobject('wife.Garbage')
x=NEWOBJECT("myclass")
? eventhandler(m.owife,m.x)
return
DEFINE CLASS myclass AS session OLEPUBLIC
IMPLEMENTS Igarbage IN "wife.Garbage"
PROCEDURE Igarbage_TakeOutGarbage(what AS STRING) AS VOID
ENDPROC
ENDDEFINE
* wife code compiled into wife.dll and added to com+
define class Garbage as session olepublic
procedure TakeOutGarbage (what as string) as void
endproc
enddefine