BstrFromVector

HRESULT BstrFromVector( 
  SAFEARRAY FAR*  psa,  
  BSTR FAR*  pbstr      
);
 

Returns a BSTR, assigning each element of the vector to a character in the BSTR.

Parameters

psa
The vector to be converted to a BSTR.
pbstr
On exit, pbstr points to a BSTR, each character of which is assigned to an element from the vector.

Return Value

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).