GetInfoDS Example for C++Builder
AnsiString sClass, sFlags;
LEADDicom1->EnableMethodErrors = true;
try
{
LEADDicom1->GetInfoDS();
LEADDicom1->FindClassIOD(LEADDicom1->InfoClass);
sClass = LEADDicom1->CurrentIOD->Name;
sFlags = IntToHex(LEADDicom1->InfoFlags, 0);
ShowMessage("Class: " + sClass + "\nFlags: " + sFlags);
}
catch(ELEADDicomError *e)
{
ShowMessage("Error Number: " + IntToStr(LEADDicom1->Error));
}