Solved

Creating a "browse" dialog

Posted on 2003-11-04
5
214 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 69

Accepted Solution

by:
Éric Moreau earned 125 total points
Comment Utility
0
 
LVL 9

Expert Comment

by:bhagyesht
Comment Utility
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 69

Expert Comment

by:Éric Moreau
Comment Utility
points to emoreau
0
 

Author Comment

by:adamee
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
endX challenge 2 48
firstChar challenge 13 83
How  do I get an older program to run in Windows 10? 20 79
creating threads in delphi 1 52
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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…
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…

743 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

17 Experts available now in Live!

Get 1:1 Help Now