 <p>Here is an example that will help you get started:</p> <pre><code>const TCHAR szFilter[] = _T("CSV Files (*.csv)|*.csv|All Files (*.*)|*.*||"); CFileDialog dlg(FALSE, _T("csv"), NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter, this); if(dlg.DoModal() == IDOK) { CString sFilePath = dlg.GetPathName(); m_FilePathEditBox.SetWindowText(sFilePath); } </code></pre>