Hi!
I'm trying to retun a safe array as a variant in a COM object. This is what I do:
COMObject::GetArray(VARIANT* arr)
{
CComSafeArray<BSTR> safeArray;
safeArray.add("Hello"
CComVariant return(safeArray);
ret.Detach(groups);
}
However, when I try to get the array from VB Script using the following lines:
Dim Arr
Arr = comobj.GetArray
I get the following error:
Invalid access to memory location
has ANYONE got any idea why??? It would be really nice to solve this prob before Monday.
Thanks in advance /dave
I'm trying to retun a safe array as a variant in a COM object. This is what I do:
COMObject::GetArray(VARIANT* arr)
{
CComSafeArray<BSTR> safeArray;
safeArray.add("Hello"
CComVariant return(safeArray);
ret.Detach(groups);
}
However, when I try to get the array from VB Script using the following lines:
Dim Arr
Arr = comobj.GetArray
I get the following error:
Invalid access to memory location
has ANYONE got any idea why??? It would be really nice to solve this prob before Monday.
Thanks in advance /dave