BstrFromVector function (oleauto.h)

Returns a BSTR, assigning each element of the vector to a character in the BSTR.

Syntax

HRESULT BstrFromVector(
  [in]  SAFEARRAY *psa,
  [out] BSTR      *pbstr
);

Parameters

[in] psa

The vector to be converted to a BSTR.

[out] pbstr

A BSTR, each character of which is assigned to an element from the vector.

Return value

This function can return one of these values.

Return code Description
S_OK
Success.
E_OUTOFMEMORY
Out of memory.
E_INVALIDARG
The psa parameter is null.
DISP_E_TYPEMISMATCH
The argument psa is not a vector (not an array of bytes).

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll