Oct 26, 2001 #1 jvff Programmer Apr 1, 2001 64 BR How can I access CFileDialog in MFC? Can somebody send me a source-code example, please? ThanQ. ;-) Thank you, JVFF (Janito Vaqueiro Ferreira Filho)
How can I access CFileDialog in MFC? Can somebody send me a source-code example, please? ThanQ. ;-) Thank you, JVFF (Janito Vaqueiro Ferreira Filho)
Oct 26, 2001 1 #2 DavesTips Programmer Sep 14, 2001 184 DE This shows the file open dialog: char buff[2048] = ""; char filter[] = "All Files (*.*)|*.*|Text Files (*.txt)|*.txt||"; CFileDialog dlg(true, NULL, NULL, OFN_HIDEREADONLY, filter); dlg.m_ofn.lpstrFile = buff; dlg.m_ofn.nMaxFile = sizeof(buff); dlg.DoModal(); Hope that this helped! ;-) Upvote 0 Downvote
This shows the file open dialog: char buff[2048] = ""; char filter[] = "All Files (*.*)|*.*|Text Files (*.txt)|*.txt||"; CFileDialog dlg(true, NULL, NULL, OFN_HIDEREADONLY, filter); dlg.m_ofn.lpstrFile = buff; dlg.m_ofn.nMaxFile = sizeof(buff); dlg.DoModal(); Hope that this helped! ;-)