Bagikan melalui


CComHeap Class

This class implements IAtlMemMgr using the COM memory allocation functions.

class CComHeap : public IAtlMemMgr

Remarks

CComHeap implements memory allocation functions using the COM allocation functions, including CoTaskMemAlloc, CoTaskMemFree, IMalloc::GetSize, and CoTaskMemRealloc. The maximum amount of memory that can be allocated is equal to INT_MAX (2147483647) bytes.

Example

See the example for IAtlMemMgr.

Requirements

Header: ATLComMem.h

See Also

Reference

CWin32Heap Class

CLocalHeap Class

CGlobalHeap Class

CCRTHeap Class

IAtlMemMgr Class

Concepts

DynamicConsumer Sample

Other Resources

CComHeap Members

ATL Class Overview