Well, I looked at my code again:
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);
After I selected .txt and DoModal returned IDOK the dlg.GetPathName() returns me "fullpath\of3.12.txt"

BTW, have you alreay fixed your code (as I mentioned in the post#4)?