?
Solved

Get pathname of Directory from CFileDialog

Posted on 2000-05-04
2
Medium Priority
?
449 Views
Last Modified: 2013-11-20
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
Comment
Question by:dinesht
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Expert Comment

by:captainkirk
ID: 2777459
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
 
LVL 23

Accepted Solution

by:
chensu earned 150 total points
ID: 2777832
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

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question