VectorFromBstr function
Returns a vector, assigning each character in the BSTR to an element of the vector.
Syntax
HRESULT VectorFromBstr( _In_ BSTR bstr, _Out_ SAFEARRAY **ppsa );
Parameters
- bstr [in]
-
The BSTR to be converted to a vector.
- ppsa [out]
-
A one-dimensional safearray containing the characters in the BSTR.
Return value
This function can return one of these values.
| Return code | Description |
|---|---|
|
Success. |
|
Out of memory. |
|
The bstr parameter is null. |
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
Show: