[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Creating a "browse" dialog

Posted on 2003-11-04
5
Medium Priority
?
261 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Simple Linear Regression

649 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