다음을 통해 공유


CWin32Heap::Allocate

Allocates a block of memory from the heap object.

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

Parameters

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

Return Value

Returns a pointer to the newly allocated memory block.

Remarks

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

Implemented using HeapAlloc.

Requirements

Header: atlmem.h

See Also

Reference

CWin32Heap Class