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
Printable View
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
CFileDialog dlgFileOpen(TRUE);
CString strFile("");
if (dlgFileOpen.DoModal() == IDOK)
strFile = dlgFileOpen.GetPathName();
HTH
Santhosh