CaptureGetResourceCount Example for C++ 5.0 and later

   short nCount;
   nCount = 0;
   /*are there any icons in the file?*/
   m_pRasterScr1.CaptureGetResourceCount("c:\\windows\\calc.exe", SCR_CAP_ICON);
   nCount = m_pRasterScr1.GetCaptureResourceCount();
   if (nCount < 1)
      AfxMessageBox(TEXT("No Icons!"));