CFileDialog fileDialog(
FALSE, // We are save as file dialog.
_T("*.txt"), // Default save as text format.
_T("hello"),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
_T("Text Files (*.*)|*.txt|Excel Files (*.xls)|*.xls|Excel Details Files|(*.xls)||"),
this);
// Returns me "xls".
const CString fileExtension = fileDialog.GetFileExt();
// Returns me "Excel Files" or "Excel Details Files"
???
What is the correct way for me to obtain the file extension description?