> From: P. Alan Johnson [mailto:[EMAIL PROTECTED]]
> I create a .r text file and name it "foo.r". The .r file type is
> mapped correctly. I put the following 2 lines into "foo.r":
> data 'tver' (1) { "1.0.1" $"00" };
> data 'tver' (1000) { "1.0.1" $"00" };
Sounds good so far, though the ID=1000 one shouldn't be needed.
> The code I use to read the 'tver' resource is:
> versionH = DmGet1Resource(verRsc, appVersionAlternateID);
Consider using DmGetResource (no "1"). It will work even if there's a more
recently opened resource DB that you don't know about. However, in this
case it doesn't seem to be a problem since one of your DmGet1Resource calls
seems to be finding something.
> Appreciate any enlightened ideas.
1. See if there are any linker warnings about duplicated resources.
2. Use a tool like Insider or Par to see exactly what resources are ending
up in your application.
3. Look in the system launcher Info dialog. Does your version string appear
correctly there?
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/