VectorFromBstr function (oleauto.h)

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

Syntax

HRESULT VectorFromBstr(
  BSTR      bstr,
  SAFEARRAY **ppsa
);

Parameters

bstr

The BSTR to be converted to a vector.

ppsa

A one-dimensional safearray containing the characters in the BSTR.

Return value

This function can return one of these values.

Return code Description
S_OK
Success.
E_OUTOFMEMORY
Out of memory.
E_INVALIDARG
The bstr parameter is null.

Requirements

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