This function returns a BSTR, assigning each element of the vector to a character in the BSTR.
At a Glance
Header file: | Oleauto.h |
Windows CE versions: | 2.0 and later |
Syntax
HRESULT BstrFromVector(SAFEARRAY FAR* psa, BSTR FAR* pbstr);
Parameters
psa
Pointer to the vector to be converted to a BSTR.
pbstr
On exit, pointer to a BSTR, each character of which is assigned to an element from the vector.
Return Values
One of the values obtained from the returned HRESULT and described in the following table is returned.
Value | Description |
S_OK | Success. |
E_OUTOFMEMORY | Out of memory. |
E_INVALIDARG | The psa parameter is NULL. |
DISP_E_TYPEMISMATCH | The psa parameter is not a vector (not an array of bytes). |