DEFINE CLASS Math AS SESSION OLEPUBLIC
FUNCTION Multiply(tnNum1, tnNum2)
LOCAL lnResult, loMtx, loContext
* Create a reference to the MTS object
loMtx = CREATEOBJECT("MTXAS.APPSERVER.1")
* Create a reference to the context object
loContext = loMtx.GetObjectContext()
lnResult = tnNum1 * tnNum2
* Commit the transaction if there is one and
* tell MTS that we're done using the component
loContext.SetComplete()
RETURN lnResult
ENDFUNC
ENDDEFINE
Is that a typical COM+ code? Every COM+ class should have this code, right?
>You could look at the articles I wrote for FoxTalk a couple of years ago. They're now on the MSDN web site. Links are at
http://articles.craigberntson.com>
>>How do we create COM+ components in VFP8?