ISISAcquire example for C++ Builder 4.0
/*The following example acquires a single image using ISISAcquire.*/
bool bLoaded = False;
LeadIsis1->EnableMethodErrors = True;
try
{
LeadIsis1->ISISLoadDriver();
bLoaded = True;
LeadIsis1->ISISAcquire(ISIS_SHOWUI);
}
catch (ELeadIsisError *e)
{
if(LeadIsis1->Error != ERROR_ISIS_CANCEL)
ShowMessage("Error " + IntToStr(LeadIsis1->Error) +
" during ISIS Scan! \n" + LeadIsis1->ErrorMsg);
if(bLoaded)
LeadIsis1->ISISUnloadDriver();
return;
}
LeadIsis1->ISISUnloadDriver();
Lead1->Bitmap = LeadIsis1->Bitmap;