Поделиться через


CComHeap::Allocate

Call this method to allocate a block of memory.

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

Параметры

  • nBytes
    The requested number of bytes in the new memory block.

Возвращаемое значение

Returns a pointer to the start of the newly allocated memory block.

Заметки

Call CComHeap::Free or CComHeap::Reallocate to free the memory allocated by this method.

Implemented using CoTaskMemAlloc.

Требования

Header: atlcommem.h

См. также

Основные понятия

CComHeap Class

CComHeap Members

CComHeap::Free

CComHeap::Reallocate