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

# SafeArrayCreateVector(3w)

## NAME

**SafeArrayCreateVector** (OLEAUT32.411)

## SYNOPSIS

SAFEARRAY\* SafeArrayCreateVector\
  (\
   VARTYPE *vt*,\
   LONG    *lLbound*,\
   ULONG   *cElements*\
  )

## DESCRIPTION

Create a one dimensional, contiguous SafeArray.

## PARAMS

*vt* **\[In\]**  Type to store in the safe array.

*lLbound* **\[In\]**  Lower bound of the array.

*cElements* **\[In\]**  Number of elements in the array.

## RETURNS

**Success:** A pointer to a new array object.

**Failure:** **NULL**, if any parameter is invalid or memory allocation fails.

## NOTES

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

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
