• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 468
  • Last Modified:

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.?
0
dinesht
Asked:
dinesht
1 Solution
 
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
 
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
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now