Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing BSTR from javascript to ATL

Status
Not open for further replies.

ranadhir

Programmer
Nov 4, 2003
54
0
0
IN
We have a method interface
[id(5), helpstring("method PlayStuff")] HRESULT PlayRecording([in] BSTR pbstscript,[in]long pinterval);
We have to invoke this method from javascript wherein we declare 2 variables as var,and pass in.
But we are unable to pass in the BSTR and the method invocation fails.
What is the correct way to declare such a method in IDL,and pass in from javascript?
 
Do you set the value to "string" in javascript before passing it to the method?


------------------
When you do it, do it right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top