Version 1 of a simple OLE test script that starts an instance of Internet Explorer.

code:

break on


$ie = createobject("internetexplorer.application")


if $ie


$ie.visible = 1


endif


?"@serror" gets $k


$ie.quit()


exit


Results:

kix32.exe: works
kix32c.exe: works

Version 2 of the same script...

code:

break on


$ie = createobject("internetexplorer.application")


$ie.visible = 1


?"@serror" gets $k


$ie.quit()


exit


Results:

kix32.exe: works
kix32c.exe: does not work

kix32c.exe reports the following error code:

COM automation error: 80020008 [1/1]

roughly translated means:

DISP_E_BADVARTYPE: Bad variable type.

Shawn.