BstrFromVector (Windows CE 5.0)

Send Feedback

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

Automation Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.