VectorFromBstr

HRESULT VectorFromBstr( 
  BSTR  bstr,                
  SAFEARRAY FAR* FAR*  ppsa  
);
 

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

Parameters

bstr
The BSTR to be converted to a vector.
ppsa
On exit, ppsa points to a one-dimensional safe array containing the characters in the BSTR.

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 BSTR is Null.