You must show a file selction dialog and not a folder selection dialog as the function name
SHBrowseForFolder
tells you.
Windows provides common dialogs including a file dialog (see
Common Dialogs (Windows)[
^]). With MFC you can also use the
CFileDialog Class[
^] which encapsulates the common file dialog.