// Allocate CDialog object on the heap.
// Object must be destroyed when no longer needed.
CDialog *pDlg = new CDialog;
// Allocate CDialog object on the stack.
// Object is destroyed when going out of scope.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)