Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I'm trying to write a small application that having a dialog containing an Edit and a Button.
When I click on the button, it calls the SHBrowseForFolder to let me choose a folder. After
that when i close the SHBrowseForFolder Dialog, the selected folder path will be show on
the Editbox.
Does anyone can show me the sample coding with comments???
Posted
Updated 29-Mar-10 1:31am
v2

http://www.andreavb.com/tip020003.html[^]

This is the VB equiv. You should be able to port from this or search google, plenty others out there.
 
Share this answer
 
Here[^] is an excellent MFC example for you.
The demo project included in the article does exactly what you want. :)

With a quick search you can find lots of additional examples on CP:
1) CFolderDialog - Selecting Folders[^]
2) Customizing the "Browse for folder" dialog[^]
2) Browse Folder dialog, search folder and all sub folders using C/C++.[^]

I hope this helps. :)
 
Share this answer
 
v2
Hi keerthi,

you can check this one too..
http://vctipsplusplus.wordpress.com/2008/07/15/using-shbrowseforfolder/[^]


BijU
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900