Link to home
Start Free TrialLog in
Avatar of Optibase1
Optibase1

asked on

Passing arguments by reference from javascript to activex object

I have created a COM object and call it as activex from a web page in javascript.
Is there a way to pass parameters by reference that will be occupied by the ActiveX object.
The only way I can get a value is:  as a - "[retval, out]"  --> means return value
My COM function signature: HRESULT GetProperties(                                    [in, out] BSTR pIn,                                    [out] ULONG* pOut1,                                    [out] ULONG* pOut2,                        
                                           [out,retval] BSTR* pOutRetVal);
pOut1 and pOut2 returns allways as 0 to the javascript.
My Javascript call:
var in, out1, out2, retVal;
var obj = new activexobject("AXname");
retVal = obj.GetProperties(in, out1, out2);
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Optibase1
Optibase1

ASKER

Thanks,
I guess your answer is 100% accurate