Hi all,
Could anybody tell me how to handle IDispatch passing
to COM method created by ATL?
### JScript ###
var x = [ "item 1", "item 2", "item 3" ];
oActiveX.myMethod(x);
### COM ###
myMethod(VARIANT x)
{
if( x.vt = VT_IDISPATCH )
{
IDispatch *pDispatch = x.pdispVal;
// Please tell me how to get "item 1",
// "item 2" and "item 3" via pDispatch ???
}
}
Thank you.
dnasdf
Could anybody tell me how to handle IDispatch passing
to COM method created by ATL?
### JScript ###
var x = [ "item 1", "item 2", "item 3" ];
oActiveX.myMethod(x);
### COM ###
myMethod(VARIANT x)
{
if( x.vt = VT_IDISPATCH )
{
IDispatch *pDispatch = x.pdispVal;
// Please tell me how to get "item 1",
// "item 2" and "item 3" via pDispatch ???
}
}
Thank you.
dnasdf