Solved

Get pathname of Directory from CFileDialog

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now