Is there any reason that this code wouldn't work?

        if (DmFindDatabase(cardNo,kCameraLibName) != 0 ||
                DmFindDatabase(cardNo,kCamLibName) != 0)
        {
                hasCamera = true;
        }

I realize that if the camera does need to be loaded, I've created extra work 
for the app. But the app will check for the camera every time, and only load it 
about 1/4 of the time. Is the DmFindDatabase call so costly that I'm still 
better off loading the library?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to