This documentation is archived and is not being maintained.

CComSafeArrayBound Class

This class is a wrapper for a SAFEARRAYBOUND structure.

class CComSafeArrayBound : public SAFEARRAYBOUND

This class is a wrapper for the SAFEARRAYBOUND structure used by CComSafeArray. It provides methods for querying and setting the upper and lower bounds of a single dimension of a CComSafeArray object and the number of elements it contains. A multidimensional CComSafeArray object uses an array of CComSafeArrayBound objects, one for each dimension. Therefore, when using methods such as GetCount, be aware that this method will not return the total number of elements in a multidimensional array.

Header: atlsafe.h

Header: atlsafe.h