How to Browse for a Directory?
-
Hi, I have a question that may be very very easy for most of you. Please don't laugh, I'm embarassed not able to find it after spending quite a bit of time on it. How can I call up a dialog box that browses for a directory? I know CFileDialog can browse for a file, but I do not need the file. I just want the directory. Thank you very much for your help. :-O
-
Hi, I have a question that may be very very easy for most of you. Please don't laugh, I'm embarassed not able to find it after spending quite a bit of time on it. How can I call up a dialog box that browses for a directory? I know CFileDialog can browse for a file, but I do not need the file. I just want the directory. Thank you very much for your help. :-O
Use SHFileOperation(). There are wrapper classes here on CP to help you get started if you need it. --Mike-- http://home.inreach.com/mdunn/ #include "witty_sig.h" :love: your :bob: with :vegemite: and :beer:
-
Use SHFileOperation(). There are wrapper classes here on CP to help you get started if you need it. --Mike-- http://home.inreach.com/mdunn/ #include "witty_sig.h" :love: your :bob: with :vegemite: and :beer:
-
SHBrowseForFolder() works better IMHO --- It may be that your sole purpose in life is simply to serve as a warning to others.
Heh, my bad. I got the SH functions mixed up in my brain. ;P --Mike-- http://home.inreach.com/mdunn/ #include "witty_sig.h" :love: your :bob: with :vegemite: and :beer:
-
Heh, my bad. I got the SH functions mixed up in my brain. ;P --Mike-- http://home.inreach.com/mdunn/ #include "witty_sig.h" :love: your :bob: with :vegemite: and :beer:
I'll ride on this topic with mine...on the off chance the original poster is using WinXP :) http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=80917&fr=176&df=2&app=50#xx79842xx :confused: --Mark Terrano