Help Center

DVARIANT.PutUShortArraymethod

Initializes DVARIANT from an array of unsigned 16-bit integer values.

COMmethodDVARIANT.INCdocumented

Syntax

FUNCTION PutUshortArray (BYVAL prgf AS USHORT PTR, BYVAL cElems AS ULONG) AS HRESULT

Parameters

NameDescription
prgfPointer to source array of USHORT values.
cElemsThe number of elements in the array.

Return value

If this function succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.

Description

Initializes DVARIANT from an array of 16-bit unsigned integer values.

Remarks

Creates a VT_ARRAY OR VT_UI2 variant.

Reference

  • Include file DVARIANT.INC
  • Defined in AfxNova/DVARIANT.inc:1491
  • Documented in COM/DVARIANT Class.md
  • Topic: DVARIANT Class