How compatable is KiXGUI with 4.10? I've seen some topics related to IDispatch errors with other COM objects and have subsequently changed some of my code, but I'm still getting errors.

Here's my code...

code:
$root=createobject("KiXGUI.Desktop")
if not $root ;Changed from "if len($root)=0"
? "KiXGUI not registered."
endif
;---------------------------------------------------------------------------
; Show Logo
;---------------------------------------------------------------------------
if $root
$imgfile=@SCRIPTDIR+"\mblogo.gif"
$frmLogo=$root.createform("frmLogo","Logo",20,20,258,101)
$frmLogo.moveable=0
$frmLogo.ResizeAble=0
$frmLogo.showintaskbar=0
$frmLogo.TitleBar=0
$frmLogo.layered=100
$frmLogo.TopMost=1
; The following line creates an object, so not assigning it to a variable creates
; an "IDispatch pointers not allowed in expressions!" error.
;$frmLogo.addimage($imgfile,$imgfile,0,0,$frmLogo.width+2,$frmLogo.height)
; Passing method to a variable fixes it. THANKS, Shawn!!!
$obj = $frmLogo.addimage("imgLogo",$imgfile,0,0,$frmLogo.width+2,$frmLogo.height)
$frmLogo.visible=1
endif

{EDIT: Changed example to reflect the actual line causing the error, plus the fix for it.}

[ 09 July 2002, 14:27: Message edited by: Chris S. ]