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);
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I guess your answer is 100% accurate