Solved

Passing arguments by reference from javascript to activex object

Posted on 2008-06-24
2
1,894 Views
Last Modified: 2013-11-18
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);
0
Comment
Question by:Optibase1
2 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 21855284
You will NOT be able to do that with javascript. However, vbscript supports pass by reference. Since you are dealing with ActiveX objects, I'm assuming you are dealing exclusively with IE. If so, try using vbscript.
0
 

Author Closing Comment

by:Optibase1
ID: 31470111
Thanks,
I guess your answer is 100% accurate
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question