"Mitch Fawcett" <[EMAIL PROTECTED]> wrote in message
news:40664@palm-dev-forum...
> Maybe this is a good time to get come clarification on version numbers
under
> CW.

The database version number (set in the PalmRez Post Linker panel in
CodeWarrior) is what's used by DmGetNextDatabaseByTypeCreator when you set
latestVersion = true. This is what Launcher does to enumerate the apps on
the device. (It's actually a lot more complicated than that, but this is an
adequate model for our purposes.)

The tver resource (set in the Version String field in the Project Settings
panel in Constructor) is what's used by Launcher's Info:Version dialog.
There are two possible ID's for the tver resource, 1 and 1000. Constructor
use 1000, but 1 also works. You don't need both, but if you have both tver 1
wins.

If there is no tver resource, Launcher will use the database version number
as a "last resort" version string, appending ".0" to the database version
number. I wouldn't take advantage of this feature.

I recommend that you bump the database version for each new version of you
app, and that you update the version string appropriately. For example, you
might have versions of your app:

DB ver#, Ver str
------
0, "0.8"
1, "0.9"
2, "1.0"
3, "1.1"
4, "2.0"
5, "2.1"

As long as you use the same database name, the database version number isn't
terribly important, but I'd go ahead and bump it for each release anyway.
--
Danny Epstein
OS Engineer, Palm Inc.


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

Reply via email to