1

I have a simple asp page:

<%@ LANGUAGE = JScript %>

<%
    var app = new ActiveXObject("MyComponent");

    var out1 = { };
    var out2 = { };

   app.GetVersion(out1, out2);
%>

'MyComponent' is a DCOM object with the following definition:

interface IMyComponent : IDispatch
{ 
    HRESULT GetVersion([out, string] char**, [out] int*);
}

While executing GetVresion function I get error "Microsoft JScript runtime error: Variable uses an Automation type not supported in JScript". How I can fix it?

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
maxvasil
  • 159
  • 4
  • 12
  • 1
    possible duplicate of [Working with "Out" Parameters in JavaScript](http://stackoverflow.com/questions/5122704/working-with-out-parameters-in-javascript) – Helen Jul 01 '11 at 17:53
  • Instead of `char **` try `BSTR *` for the string. – wqw Jul 02 '11 at 12:10

0 Answers0