Condividi tramite


CComAllocator::Allocate

Call this static function to allocate memory.

static void* Allocate( 
   size_t nBytes  
) throw( );

Parameters

  • nBytes
    The number of bytes to allocate.

Return Value

Returns a void pointer to the allocated space, or NULL if there is insufficient memory available.

Remarks

Allocates memory. See CoTaskMemAlloc for more details.

Requirements

Header: atlbase.h

See Also

Reference

CComAllocator Class

CComAllocator::Free

CComAllocator::Reallocate