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

CComSafeArray::Resize

Resizes a CComSafeArray object.

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

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

ulCount

The requested number of objects in the resized array.

lLBound

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
Show:
© 2014 Microsoft. All rights reserved.