Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function retrieves a BSTR, assigning each element of the vector to a character in the BSTR.
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 Values
Returns the HRESULT values shown in the following table.
| Value | Description | 
|---|---|
| S_OK | Success. | 
| E_OUTOFMEMORY | Out of memory. | 
| E_INVALIDARG | The psa parameter is NULL. | 
| DISP_E_TYPEMISMATCH | The psa parameter is not a vector (not an array of bytes). | 
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Oleauto.h.
Link Library: Oleaut32.lib.
See Also
Send Feedback on this topic to the authors