FreeDlg Example for C++ 5.0 and later

//   This Will be in destructor
   RasterKrnDlg->FreeDlg();
   CoUninitialize();