System Global Function ConvertSafeArrayVariant


ConvertSafeArrayVariant( const iSafeArray,
ioStringArray,
iSize= 0)
Converts a CATSafeArrayVariant into a C++ array of CATUnicodeStrings.
Parameters:
iSafeArray
the array to convert
ioStringArray
a pointer to a C++ array of CATUnicodeStrings large enough to contain all the converted values.
Legal values:
NULL
The function will simply return the size of the CATSafeArrayVariant without converting anything. This size can later be used to allocate the C++ array to the proper size.
valid non NULL pointer
The function will convert the CATSafeArrayVariant and put the results in the array.
iSize
the number of elements to convert.
Legal values:Must be smaller than or equal to the size of iSafeArray.
Returns:
the number of converted elements if ioStringArray is not NULL, or the size of iSafeArray otherwise.

This object is included in the file: CATAutoConversions.h

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.