The study blog from marearts.com
Computer Vision & Machine Learning Research Laboratory
TCHAR szFilter[] = _T("All Files(*.*)|*.*||");
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY, szFilter);
CString strPathName, m_filename;
if(IDOK == dlg.DoModal()) {
m_filename=dlg.GetFileName(); //file name
strPathName = dlg.GetPathName(); //full path info
}
..