I'm sitting here trying to get a simple dialog box working, where the user can select a directory rather than a file.
I'm using the cheap Borland Turbo, which doesn't seem to be compatible with older versions of Builder... I fail to get the SelectDirectory() function working. I know I need to include one .lib or another for it, but I can't find it. Tried vclx.lib but it ain't working.
So anyway, I decided to skip the Borland functions and use the Win API instead. The right function to use seems to be SHBrowseForFolder(). However, I can't get this working either... I don't know what header to use. Simply using windows.h isn't enough. If I include I get linker errors... seems it is already included from somewhere else in Turbo's messy headers.
Does anyone know what to do to get this working? Good old Dev C++ doesn't seem to have any problems with it at all. I'm about to throw out Turbo and go plain API right now...