?
Solved

Creating a "browse" dialog

Posted on 2003-11-04
5
Medium Priority
?
256 Views
Last Modified: 2010-04-17
For a small application i am writting i require a dialog in which the user can browse their computer and select files from it (very much like windows explorer).

I am using VS 6.0 on windows 2000.  On the dialog i have added a tree control and was under the impression that if i could perform a somewhat recursive sweep of all local drives i would have the information in order to populate the tree in the style of windows explorer.

Is this a feasible route? I have looked round and have only come across functions such as _findfirst which would allow me to gather the required information but only from the application directory onwards and only for the applications drive.

Can anybody suggest how this could be done or point me in the direction of how a task like this should be handled.

Thanks
0
Comment
Question by:adamee
[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
5 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 9683396
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9684333
you can use the microsofts's common dialog which has file open in it. i dont think you need to write your own unless that dialog doesnt provide you with something u need.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 10316905
points to emoreau
0
 

Author Comment

by:adamee
ID: 10325383
Yes emoreau you can have the points... but cheers for the reply from the other guy...

Perhaps i should have made my question a little... if not a lot clearer :D

I was using visual c++ not vb and wanted an idea of the code that would be required behind a tree control to populate it with the local drive and filesystem info, but thats not a prob i sorted the code and still went with the "browse for folder" dlg from the shell anyway so points rightly to emoreau.

Cheers

0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Six Sigma Control Plans
Introduction to Processes

765 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