Attach to Array

void Attach(
TYPE* pItems, 
int nSize);

Parameters

pItems

C array allocated with CoTaskMemAlloc.

nSize

The size of the given C array.

Comments

Attaches an external C array to the array. RemoveAll is called implicitly to clear the current content. pItems must have been allocated with CoTaskMemAlloc.

pItems must be a valid pointer, and nSize must not be greater then the array size. No argument validation is done.