Click to See Complete Forum and Search --> : Open File Dialog


the groove king
May 6th, 1999, 03:27 PM
Is there a way to display a standard MFC style Open File Dialog, and have it return the filename that the user selected (into a char array), but not open the file?

Thanks,
-phil

scp
May 6th, 1999, 03:39 PM
CFileDialog dlgFileOpen(TRUE);
CString strFile("");
if (dlgFileOpen.DoModal() == IDOK)
strFile = dlgFileOpen.GetPathName();

HTH
Santhosh