Is it possible to call a windows common dialog and retrieve its output from within a command line application? I’d like to build most of my application to run from the console, since in my particular case it would SERIOUSLY reduce complexity; however, I would like to be able to pop up a folder selector dialog to let the user pick out a directory. I’d just like to avoid the overhead of creating a full-blown GUI app.
I’d be doing this in C++, if that makes a difference.
(taken from http://vcfaq.mvps.org/sdk/20.htm)