CaptureGetResourceCount Example for Builder 3.0

{

        int nCount = 0;
        /*are there any icons in the file?*/
        LEADScr1->CaptureGetResourceCount("c:\\windows\\calc.exe", CAPTURE_ICON, nCount);
        if ( (nCount < 1) )
            ShowMessage("No Icons!");

       else

           ShowMessage("Number of Icons = " + IntToStr(nCount));

}