emperorevil
Programmer
How can I, with a dialog box, make a "browse" button that can search for a file of a specific type that can return whatever path was of the file selected?
(I'm new to Visual C++)
(I'm new to Visual C++)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CString strFilt = "My Files (*.xxx)|.xxx||";
CString myFile = "";
CFileDialog FileDlg(TRUE,NULL,NULL,OFN_HIDEREADONLY |
OFN_OVERWRITEPROMPT, strFilt);
(if FileDlg.DoModal() == IDOK)
{
myFile = FileDlg.GetPathName();
}