I've been researching how to add a "browse for a folder" option to a VB6 program. Found info on using SHBrowseForFolder function, and it works just fine, as far as it goes.
In searching further to find how to provide a default folder, the best I've managed to find was a 4-year-old post in the .Net Framework area pointing to a no-longer-extant blog entry. I eventually traced the old link to here, where it describes how to use a callback function for this purpose. However, I believe the code provided is C++, or some .net language.
Could someone help me out with a VB6 interpretation? If I recall correctly, callback functions were a problem in (even) earlier versions of VB, but 6 should be able to handle them. I'm a bit reluctant to play around with callbacks, though I might give it a bit of a go.
Alternatively, does anyone know another way in VB6 to provide the ability to browse and select a folder rather than a file? For instance, can the common file-selection dialogue be told to select a folder rather than a file? If so, I haven't managed to find that yet.