HRESULT BstrFromVector(
SAFEARRAY FAR* psa,
BSTR FAR* pbstr
);
Returns a BSTR, assigning each element of the vector to a character in the BSTR.
The return value obtained from the returned HRESULT is one of the following.
Return value | Meaning |
---|---|
S_OK | Success. |
E_OUTOFMEMORY | Out of memory. |
E_INVALIDARG | The argument psa is Null. |
DISP_E_TYPEMISMATCH | The argument psa is not a vector (not an array of bytes). |