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 |
---|---|
|
Success. |
|
Out of memory. |
|
The psa parameter is null. |
|
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 |