---
name: "BstrFromVector"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/BstrFromVector"
---

# BstrFromVector(3w)

## NAME

**BstrFromVector** (OLEAUT32.@)

## SYNOPSIS

HRESULT BstrFromVector\
  (\
   SAFEARRAY\* *psa*,\
   BSTR\*      *pbstr*\
  )

## DESCRIPTION

Create a **BSTR** from a SafeArray.

## PARAMS

*psa* **\[In\]**  Source array.

*pbstr* **\[Out\]**  Destination for output **BSTR**.

## RETURNS

**Success:** **S\_OK**. *pbstr* contains the arrays data.

**Failure:** An **HRESULT** error code indicating the error.

## NOTES

*psa* must be a **1** dimensional array of a **1** byte type.

## NOTES

See **[SafeArray(3w)](/SafeArray/3w.md)**.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/safearray.c"**.

Debug channel **"variant"**.
