Hi Christian,
The following works in my test
DEFINE CLASS oTestCom AS Custom OlePublic
FUNCTION SysTest(toObj) AS Integer
RETURN SYS(3095, toObj)
ENDFUNC
ENDDEFINE
...
loObj = CREATEOBJECT("mydll.oTestCom")
? SYS(3095,loObj), loObj.SysTest(loObj)
>
>this doesn't work either, but thx for particiopating anyway.
>
>I think we can stop this discussion here since it just doesn't work.
>
>So if one wants to use SYS(3095) from inside a COM object to get the IDispatch pointer of the same object, just forget it or wait for a fix from MS.
>
>As a workaround one has to call SYS(3095) from outside the COM class.
--sb--