Udostępnij za pośrednictwem


CComSafeArray Members

Methods

~CComSafeArray

The destructor.

Add

Adds one or more elements, or a SAFEARRAY structure, to a CComSafeArray.

Attach

Attaches a SAFEARRAY structure to a CComSafeArray object.

CComSafeArray

The constructor.

CopyFrom

Copies the contents of a SAFEARRAY structure into the CComSafeArray object.

CopyTo

Creates a copy of the CComSafeArray object.

Create

Creates a CComSafeArray object.

Destroy

Destroys a CComSafeArray object.

Detach

Detaches a SAFEARRAY from a CComSafeArray object.

GetAt

Retrieves a single element from a single-dimensional array.

GetCount

Returns the number of elements in the array.

GetDimensions

Returns the number of dimensions in the array.

GetLowerBound

Returns the lower bound for a given dimension of the array.

GetSafeArrayPtr

Returns the address of the m_psa data member.

GetType

Returns the type of data stored in the array.

GetUpperBound

Returns the upper bound for any dimension of the array.

IsSizable

Tests if a CComSafeArray object can be resized.

MultiDimGetAt

Retrieves a single element from a multidimensional array.

MultiDimSetAt

Sets the value of an element in a multidimensional array.

Resize

Resizes a CComSafeArray object.

SetAt

Sets the value of an element in a single-dimensional array.

Operators

operator []

Retrieves an element from the array.

operator =

Assignment operator.

operator LPSAFEARRAY

Casts a value to a SAFEARRAY pointer.

Data Members

m_psa

This data member holds the address of the SAFEARRAY structure.

See Also

Reference

CComSafeArray Class