I you check the documentation for DmGetResouce, you will find that it
searches 'all open' resource databases. If you app has its version definined
with appVersionAlternateID, but there is some app (possibly a shared library
or something opend by the OS) which uses appVersionID, your code will return
the version from that database rather than from your application. Perhaps
you want DmGet1Resource instead of DmGetResource

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Percival
Sent: Wednesday, August 30, 2000 04:31
To: Palm Developer Forum
Subject: Re: appVersionID / appVersionAlternateID


It does this on all my projects even.  Can anyone sugest a way of tracking
this problem down?



Chris Percival <[EMAIL PROTECTED]> wrote in message
news:22586@palm-dev-forum...
>
> Sorry to bring this subject up again, but is this code expected to return
> the application version number as set with constructor?
> On OS 3.2 it works but on OS 3.5 it returns what looks like the OS version
> (3.5.2).
>
>    h = DmGetResource(verRsc, appVersionID);
>    if (!h) h = DmGetResource(verRsc, appVersionAlternateID);
>    ErrFatalDisplayIf(!h, "Unable to find version string");
>    p = MemHandleLock(h);

>    SetFieldText(AboutDlgVersionField, p);
>    MemPtrUnlock(p);
>
>
> Ken Krugler:  I am  unsure how to use the db ref result from
> DmSearchResource to determine which resource file
> it came from, as suggested by you in a previous post.
>
> Do people use this application version resource or do you just hardcode a
> string somewhere?
>
> Chris
>
>
>
>



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


-- 
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