At 04:56 AM 3/22/2004, you wrote:
Hey all,

I vaguely remember this being discussed here before but couldn't find it
back on escribe...

I'd like to add some code to my app - that should run on a T3 - to test
wether the AppSlipRotate and StatusBarLib databases are already
installed. The problem is, when I call

cur->iDBID = DmFindDatabase(0, cur->iDatabaseName);

on a freshly hard-reset T3, I find that DmFindDatabase returns a
non-zero value, indicating they are already installed. Yet when I run
the SampleCollapse app, I can't 'open' and 'close' the DIA. When I used
an earlier version of the code of my installation-app -in which I didn't
test for the existence of the prcs in the internal storage, but simply
installed them (w. VFSImportDatabaseFromFile)- (and did a soft reset
afterwards) both files _were_ properly installed.

Now, I have two questions:
1. Why does DmFindDatabase return a non-zero value before I installed
the databases

I think it's likely that those DBs are in the ROM, and that the installed versions replace them in RAM, since Palm OS will use a RAM-based DB first, over the ROM-based one with the same name.


Why not check the version info from the DBs. The ones in ROM should have a lower PRC version number than the ones you can install.

You can check this pretty easily using a tool like Quartus RsrcEdit.

-- Ben Combee, senior DTS engineer, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to