Mensaje    Asunto: Alguien me podria ayudar a traducir este codigo a Builder C+ Responder citando

procedure TForm1.Button1Click(Sender: TObject);
var
BrowseInfo : TBrowseInfo;
PIDL : PItemIDList;
DisplayName : array[0..MAX_PATH] of Char;
begin
FillChar(BrowseInfo,SizeOf(BrowseInfo),#0);
BrowseInfo.hwndOwner := Handle;
BrowseInfo.pszDisplayName := @DisplayName[0];
BrowseInfo.lpszTitle := 'Select Directory';

{ la mejora empieza aquin!}

BrowseInfo.ulFlags := BIF_RETURNONLYFSDIRS or BIF_EDITBOX or $40;

{
Para la siguiente funcion hace falta; "uses Ole2"
(hay que copiar la unit SOURCE\RTL\WIN\ole2.pas a
\LIB\).
}

CoInitialize(NIL);

{ la mejora termina aquin }

PIDL := SHBrowseForFolder(BrowseInfo);
if Assigned(PIDL) then
if SHGetPathFromIDList(PIDL, DisplayName) then
ShowMessage(DisplayName);
end;
Gracias de antemano
y perdon por poner la peticion de ayuda en la seccion de trucos fue un pequeño error