More Advanced Dialog Problem in VC++
Posted on 2015-02-10
I am working on a dialog with an edit box and a browse button. The purpose of the dialog is to enable the user to browse to the file on his computer, and when he opens the file he wants, the path and name of the file are to be put into the edit box where it will be used by later software. I can browse to the file and open it, but I cannot find out how to capture that path and name and place it in the edit box.
Here is the code to open the file (from VS2013 help)
OPENFILENAME& ofn = dlgFile.GetOFN();