Solved

Creating a "browse" dialog

Posted on 2003-11-04
5
245 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
  • 2
5 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 125 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will show, step by step, how to integrate R code into a R Sweave document
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…

809 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