I spend a lot of time to understand how to do a browse folder at the end I've find this:
=========START=============
#define NO_WIN32_LEAN_AND_MEAN
#include <WindowsX.h>
void __fastcall TFormQueuerAll::SpeedButton1Click(TObject *Sender)
{
// Use Windows 95 Directory box to get dir
BROWSEINFO bi;
char GDir[MAX_PATH];
char FolderName[MAX_PATH];
LPITEMIDLIST ItemID;
memset(&bi, 0, sizeof(BROWSEINFO));
memset(GDir, 0, MAX_PATH);
bi.hwndOwner = Handle;
bi.pszDisplayName = FolderName;
bi.lpszTitle = "Select Directory to Search In!";
ItemID = SHBrowseForFolder(&bi);
SHGetPathFromIDList(ItemID, GDir);
GlobalFreePtr(ItemID);
String Temp = String(GDir);
if (Temp == "") return;
Edit1->Text=Temp;
}
==================END===============
I hope that this could help you.
Bye,
Checco