Solved

Get pathname of Directory from CFileDialog

Posted on 2000-05-04
2
409 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
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 50 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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