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


CComAllocator::Allocate

Call this static function to allocate memory.

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

Параметры

  • nBytes
    The number of bytes to allocate.

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

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

Заметки

Allocates memory. See CoTaskMemAlloc for more details.

Требования

Header: atlbase.h

См. также

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

CComAllocator Class

CComAllocator Members

CComAllocator::Free

CComAllocator::Reallocate