This function returns a vector assigning each character in the BSTR to an element of the vector.
HRESULT VectorFromBstr( BSTR bstr, SAFEARRAY FAR* FAR* ppsa );
[in] Unicode string to be converted to a vector.
[out] On exit, pointer to a one-dimensional safearray that contains the characters in the BSTR.
The following table shows the HRESULT values that can be returned by this function.
|E_OUTOFMEMORY||Out of memory.|
|E_INVALIDARG||BSTR is NULL.|
Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.
OS Versions: Windows CE 2.0 and later.
Link Library: Oleaut32.lib.
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.