Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CComSafeArrayBound Class

This class is a wrapper for a SAFEARRAYBOUND structure.

class CComSafeArrayBound : public SAFEARRAYBOUND

CComSafeArrayBound

The constructor.

GetCount

Call this method to return the number of elements.

GetLowerBound

Call this method to return the lower bound.

GetUpperBound

Call this method to return the upper bound.

SetCount

Call this method to set the number of elements.

SetLowerBound

Call this method to set the lower bound.

operator =

Sets the CComSafeArrayBound to a new value.

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.