ISISAcquire example for C++ 5.0 and later
short nRet;
ILEADRasterISIS *pRasterISIS;
ILEADRaster *pRaster;
CWnd *m_pMainWnd;
//The following example acquires a single image using ISISAcquire.
pRasterISIS->PutEnableMethodErrors (FALSE);
nRet = pRasterISIS->ISISLoadDriver ();
if (nRet == 0)
{
nRet = pRasterISIS->ISISAcquire ( (long)m_pMainWnd->m_hWnd, pRaster, ISIS_SHOWUI, ISIS_BITMAP_LIST_OVERWRITE );
pRasterISIS->ISISUnloadDriver ();
}
if (nRet != 0)
{
if (nRet != ERROR_ISIS_CANCEL)
AfxMessageBox(TEXT("Error during ISIS Scan!"));
}