ShowGetDirectoryDlg example for C++ Builder

void __fastcall TForm1::ShowGetDirectoryDlg1Click(TObject *Sender) 
{
   L_INT nRet; 

   LEADDlgFile1->Directory = "c:\\images\\";
   LEADDlgFile1->Filter = "ALL|*.*|LEAD|*.cmp|JPEG|*.JPG";
   LEADDlgFile1->FilterIndex = 1; 
   LEADDlgFile1->DialogTitle = "Select a Directory Please";

   LEADDlgFile1->ShowHelpButton= true; 
   LEADDlgFile1->EnableMethodErrors = false; 
   LEADDlgFile1->LEADDlgService = LEADDlgService1; 

   nRet= LEADDlgFile1->ShowGetDirectoryDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK  ) 
   {
      ShowMessage ( LEADDlgFile1->Directory ); 
   }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::LEADDlgFile1DlgHelp (DWORD uDialogID) 
{
   switch ( uDialogID ) 
   {
      case DLG_HELP_GETDIRECTORY: 
         ShowMessage( "Help from GetDirectory dialog" ); 
      break; 

      case DLG_HELP_FILESASSOCIATION: 
         ShowMessage( "Help from FilesAssociation dialog" ); 
      break; 

      case DLG_HELP_OPEN: 
         ShowMessage( "Help from Open dialog" ); 
      break; 

      case DLG_HELP_SAVE: 
         ShowMessage( "Help from Save dialog" ); 
      break; 

      case DLG_HELP_FILECONVERSION: 
         ShowMessage( "Help from FileConversion dialog" ); 
      break; 

      case DLG_HELP_PRINTPREVIEW: 
         ShowMessage( "Help from PrintPreview dialog" ); 
      break; 

      case DLG_HELP_PRINTSTITCHEDIMAGES: 
         ShowMessage( "Help from PrintStitchedImages dialog" ); 
      break; 
   }
}