CDialog* MyDialog = new CDialog; // use MyDialog delete MyDialog; int* set = new int[100]; //use set[] delete [] set;