Well, I looked at my code again:After I selected .txt and DoModal returned IDOK the dlg.GetPathName() returns me "fullpath\of3.12.txt"Code:CString strFilter = _T("Microsoft Excel Worksheet (.xls)|*.xls|CSV (Comma Separated Values) (.csv)|*.csv|Text File (.txt)|*.txt|All Files (*.*)|*.*||"); CFileDialog dlg( FALSE, _T("dat"), _T("of3.12"), OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, strFilter, pParent);
BTW, have you alreay fixed your code (as I mentioned in the post#4)?





Victor Nijegorodov
Reply With Quote
