This function returns a BSTR, assigning each element of the vector to a character in the BSTR.

HRESULT BstrFromVector(
BSTR FAR *pbstr ); 


  • psa
    Pointer to the vector to be converted to a BSTR.
  • pbstr
    On exit, pointer to a BSTR, each character of which is assigned to an element from the vector.

Return Values

One of the values obtained from the returned HRESULT and described in the following table is returned.

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).


Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Oleauto.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.