Eric Potter wrote:

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?
I don't think that one call to DmFindDatabase() at the start of your app would be very noticeable, probably just a handful of milliseconds (you could check the number of ticks it takes if you are curious -- might be a really small number). Unless you are making this call numerous times in the middle of some other loop then I'd be disinclined to worry about it. Or maybe I missed some earlier chatter about what you were trying to do. Just my 2c. Bob

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to