Hi
I am trying to invoke a COM object through a script. When
the script is executed we neither get the return value nor
the error. But the COM interface documentation specifies
that the COM Object interface returns a string as an
output.
I had posted this question earlier but the I had written
the code in Jscript now I tried the invokation with the
VBscript. Now I am getting a run time error saying "type
mismatch".
Here is the COM interface specification provided by the
vendor.
HRESULT Schedule ([in] BSTR xmlDataSource,
[in] BSTR xmlSchedule,
[out] BSTR xmlScheduleResult;
[out] BSTR xmlReturn);
to invoke this interface we are using the code below
Set obj = WScript.CreateObject("LSANAL.Analysis")
Dim third, value, result
arg0 = "ACCOUNT"
arg1 = "Test"
result=obj.Schedule(arg0,arg1,third,value);
WScript.echo(third);
WScript.echo(value);
Could you please let me know what might be wrong or what
could I do to get the output?
Thank you,
VinodRamu
..