Passing variant array from VBScript to ATL 
Author Message
 Passing variant array from VBScript to ATL

Hi,

I'm trying to pass a variant array from VBScript to my ActiveX
Component written using ATL. The code is something like this

//////////////////////////////
VBScript
--------

Dim InputArgs(1)
Dim OutputArgs(0)
Dim Status

InputArgs(0) = 34
returnVal = MyObject.DoSomething("Action", InputArgs, OutputArgs)

ATL
----

STDMETHODIMP CMyObject::DoSomething(BSTR bstrName, VARIANT vInArgs,
VARIANT *pvOutArgs)
{
//what should i do here ???
return S_OK;

Quote:
}

//////////////////////////////

How can I get the input argument values in the ATL Code. The value of
vInArgs.vt is VT_VARIANT|VT_BYREF, however vInArgs.pvarVal doesn't
contain valid data.

TIA

Rohitab Batra
http://www.*-*-*.com/
------------------------------------------------------------------------
------------
Disclaimer: Any errors in spelling, tact or fact are transmission errors

Sent via Deja.com
http://www.*-*-*.com/



Sat, 12 Jul 2003 10:13:42 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing a Variant 2D array of Double to C from Basic via ATL

2. returning a VARIANT array from a ATL server

3. How to get back an array of struct via a variant fron VC++ ATL to VB

4. converting Array to Variant and Variant to Array

5. Passing array of strings from ASP (JScript) to ATL COM

6. Array to Variant and Variant to array problem

7. Passing variant containing byte array

8. Trying to pass a Variant Array of Doubles to ActiveX from HTML

9. Passing a variant array from asp to a cls and back

10. Problem passing a variant array out of VBasic object to ASP

11. Passing an Array of Variants to an ActiveX control

12. How does a WSH pass a Variant array to a script

 

 
Powered by phpBB® Forum Software