Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CObArray::SetSize
CObArray                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetSize( int nNewSize, int nGrowBy = -1 )
  throw( CMemoryException );
 
  Parameter   Description
 
  <nNewSize>  The new array size (number of elements). Must be greater
              than or equal to 0.
 
  <nGrowBy>   The minimum number of element slots to allocate if a size
              increase is necessary.
 
  Remarks
 
  Establishes the size of an empty or existing array; allocates memory if
  necessary.
 
  If the new size is smaller than the old size, then the array is
  truncated and all unused memory is released.
 
  The <nGrowBy> parameter affects internal memory allocation while the
  array is growing. Its use never affects the array size as reported by
  GetSize and GetUpperBound.
 
 
                                     -♦-