Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function retrieves a BSTR, assigning each element of the vector to a character in the BSTR.
Syntax
HRESULT BstrFromVector( SAFEARRAY FAR* psa , BSTR FAR* pbstr ); |
Parameters
- psa
-
[in] Pointer to the vector to be converted to a BSTR.
- pbstr
-
[out] Pointer to a BSTR, each character of which is assigned to an element from the vector.
Return Value
Returns the HRESULT values shown in the following table.
Value | Description |
---|---|
S_OK |
Success. |
E_OUTOFMEMORY |
Out of memory. |
E_INVALIDARG |
The psaparameter is NULL. |
DISP_E_TYPEMISMATCH |
The psaparameter is not a vector (not an array of bytes). |
Requirements
Header | oleauto.h |
Library | oleaut32.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |