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


Resizes a CComSafeArray object.

HRESULT Resize( 
   const SAFEARRAYBOUND * pBound  
HRESULT Resize( 
   ULONG ulCount, 
   LONG lLBound = 0  

A pointer to a SAFEARRAYBOUND structure that contains information on the number of elements and the lower bound of an array.


The requested number of objects in the resized array.


The lower bound.

Returns S_OK on success, or an error HRESULT on failure.

This method only resizes the rightmost dimension. It will not resize arrays that return IsResizable as false.

Header: atlsafe.h

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