The following tasks deal with the C++ memory-management techniques that you should use in MFC.
For non-MFC information about memory management in programs for Windows, see Memory Management in the Win32 Programmer's Reference.
General Memory-Management Techniques
Allocating Memory for Specific Data Structures