title: Select File or Folder in MFC VS2010
body: <p>I have converted a MFC application which was run on VS2005 to VS2010
  In there I've functionality to select either a file or folder from CSelectDialog and it worked fine.</p>
  
  <p>But when I convert the project into VS2010 now I can select files only.
  How can I get rid of that? I couldn't find any libraries that I can use for this.</p>
  
  <p>Simply I want to select either a file or folder using MFC in VS2010</p>
  
  <p>Don't consider this as a duplication of </p>
  
  <p><a href="https://stackoverflow.com/questions/15852106/how-to-use-open-file-dialog-to-select-either-a-file-or-a-folder-in-vc-mfc">https://stackoverflow.com/questions/15852106/how-to-use-open-file-dialog-to-select-either-a-file-or-a-folder-in-vc-mfc</a></p>
  
  <p>or</p>
  
  <p><a href="https://stackoverflow.com/questions/31059/how-do-you-configure-an-openfiledialog-to-select-folders">How do you configure an OpenFileDialog to select folders?</a></p>
  
  <p>Because those answers are not applicable to this.</p>