Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A class for working with arrays of arbitrary type and dimension.
class COleSafeArray : public tagVARIANT
Members
Public Constructors
| Name | Description | 
|---|---|
| Constructs a COleSafeArray object. | 
Public Methods
| Name | Description | 
|---|---|
| Retrieves a pointer to the array data. | |
| Allocates memory for the array. | |
| Allocates memory for the safe array descriptor. | |
| Gives control of the existing VARIANT array to the COleSafeArray object. | |
| Frees all data in the underlying VARIANT. | |
| Creates a copy of an existing array. | |
| Creates a safe array. | |
| Creates a one-dimensional COleSafeArray object. | |
| Destroys an existing array. | |
| Destroys data in a safe array. | |
| Destroys a descriptor of a safe array. | |
| Detaches the VARIANT array from the COleSafeArray object (so that the data will not be freed). | |
| Copies the contents of the safe array into a CByteArray. | |
| Returns the number of dimensions in the array. | |
| Retrieves a single element of the safe array. | |
| Returns the size, in bytes, of one element in a safe array. | |
| Returns the lower bound for any dimension of a safe array. | |
| Returns the number of elements in the one-dimensional COleSafeArray object. | |
| Returns the upper bound for any dimension of a safe array. | |
| Increments the lock count of an array and places a pointer to the array data in the array descriptor. | |
| Returns a pointer to the indexed element. | |
| Assigns a single element into the array. | |
| Changes the least significant (rightmost) bound of a safe array. | |
| Changes the number of elements in a one-dimensional COleSafeArray object. | |
| Decrements the lock count of an array and invalidates the pointer retrieved by AccessData. | |
| Decrements the lock count of an array so it can be freed or resized. | 
Public Operators
| Name | Description | 
|---|---|
| Accesses the underlying VARIANT structure of the COleSafeArray object. | |
| Accesses the underlying VARIANT structure of the COleSafeArray object. | |
| Copies values into a COleSafeArray object (SAFEARRAY, VARIANT, COleVariant, or COleSafeArray array). | |
| Compares two variant arrays (SAFEARRAY, VARIANT, COleVariant, or COleSafeArray arrays). | |
| Outputs the contents of a COleSafeArray object to the dump context. | 
Remarks
COleSafeArray derives from the OLE VARIANT structure. The OLE SAFEARRAY member functions are available through COleSafeArray, as well as a set of member functions specifically designed for one-dimensional arrays of bytes.
Inheritance Hierarchy
tagVARIANT
COleSafeArray
Requirements
Header: afxdisp.h