LoadDS Example for C++Builder

   int nRet;

   /* load a Data Set */
   LEADDicom1->EnableMethodErrors = false;
   LEADDialog1->UIFlags = DLG_FO_SHOWPREVIEW | DLG_FO_SHOWSTAMP;
   LEADDialog1->Filter = "DICOM Files|*.dic";
   nRet = LEADDialog1->FileOpen(this);
   if(nRet == SUCCESS)
      nRet = LEADDicom1->LoadDS(LEADDialog1->FileName, 0);
   if((nRet != SUCCESS) && (nRet != ERROR_DLG_CANCELED))
      ShowMessage("Error " + IntToStr(nRet) + " loading file!");
   LEADDicom1->EnableMethodErrors = true;