Udostępnij za pośrednictwem


CComSafeArray::CComSafeArray

The constructor.

CComSafeArray( ); 
CComSafeArray(
   const SAFEARRAYBOUND& bound 
);
CComSafeArray(
   ULONG ulCount,
   LONG lLBound = 0 
);
CComSafeArray(
   const SAFEARRAYBOUND * pBound,
   UINT uDims = 1 
);
CComSafeArray(
   const CComSafeArray& saSrc 
);
CComSafeArray(
   const SAFEARRAY& saSrc 
);
CComSafeArray(
   const SAFEARRAY * psaSrc 
);

Parameters

  • bound
    A SAFEARRAYBOUND structure.

  • ulCount
    The number of elements in the array.

  • lLBound
    The lower bound value; that is, the index of the first element in the array.

  • pBound
    A pointer to a SAFEARRAYBOUND structure.

  • uDims
    The count of dimensions in the array.

  • saSrc
    A reference to a SAFEARRAY structure or CComSafeArray object. In either case the constructor uses this reference to make a copy of the array, so the array is not referenced after construction.

  • psaSrc
    A pointer to a SAFEARRAY structure. The constructor uses this address to make a copy of the array, so the array is not referenced after construction.

Remarks

Creates a CComSafeArray object.

Requirements

Header: atlsafe.h

See Also

Reference

CComSafeArray Class

CComSafeArray::~CComSafeArray

Other Resources

CComSafeArray Members