Get pathname of Directory from CFileDialog

How do i get the pathname into EDIT Box from CFileDialog?

If it is not possible, is there any other control available through which we can get pathname of the directory having no files.?
dineshtAsked:
Who is Participating?
 
chensuCommented:
Use the SHBrowseForFolder function.

A COMPLETE SHBrowseForFolder wrapper class
http://www.codeguru.com/shell/bff.shtml

Dialog for selecting folders
http://www.codeguru.com/dialog/index.shtml
0
 
captainkirkCommented:
Since you have to select a file in order to get a returned path from CFileDialog, I understand the question to mean that you would like something like a folder picker... I will give you some code for a folder picker dialog if you are interested... just give me your email...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.