Link to home
Start Free TrialLog in
Avatar of adamee
adamee

asked on

Creating a "browse" dialog

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
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
points to emoreau
Avatar of adamee
adamee

ASKER

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