// At least one camera must be available
INT nNumCam;
if( is_GetNumberOfCameras( &nNumCam ) == IS_SUCCESS)
{
if( nNumCam >= 1 )
{
// Create new list with suitable size
UC480_CAMERA_LIST* pucl;
pucl = (UC480_CAMERA_LIST*) new char [sizeof
(DWORD)
+ nNumCam
* sizeof
(UC480_CAMERA_IN
FO)];
pucl->dwCount = nNumCam;
//Retrieve camera info
if (is_GetCameraList(pucl) == IS_SUCCESS)
{
int iCamera;
for (iCamera = 0; iCamera < (int)pucl-
>dwCount; iCamera++)
{
//Test output of camera info on the
screen
printf("Camera %i Id: %d", iCamera,
pucl->uci[iCamera].dwCameraID);
}
}
}
}