VectorFromBstr function

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

Syntax


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

Parameters

bstr [in]

The BSTR to be converted to a vector.

ppsa [out]

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

Return value

This function can return one of these values.

Return codeDescription
S_OK

Success.

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

The bstr parameter is null.

 

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Show: