Can I bring this subject up again?
Unfortunaltly I don't have an OS3.5 unit to test on so I can't determine
where the resource was found. It would be good if someone can tell me for
sure that this shouldn't happen...
Chris
Ken Krugler <[EMAIL PROTECTED]> wrote in message news:21189@palm-dev-forum...
>
> At 12:00am -0700 00-08-12, Palm Developer Forum digest wrote:
> >Subject: Using appVersionID/appVersionAlternateID
> >From: "Chris Percival" <[EMAIL PROTECTED]>
> >Date: Fri, 11 Aug 2000 09:46:44 +0100
> >X-Message-Number: 5
> >
> >I am using the following code to get the application version string:
> >
> >h = DmGetResource(verRsc, appVersionID);
> >if (!h) h = DmGetResource(verRsc, appVersionAlternateID);
> >ErrFatalDisplayIf(!h, "Unable to find version string");
> >p = MemHandleLock(h);
> >SetFieldText(AboutFormVersionField, p);
> >MemPtrUnlock(p);
> >
> >However it seems that on OS 3.2 this works OK, but on 3.5 this gives the
OS
> >version. Is this correct, or am I being a muppet? If so how do I get
the
> >application version string on OS 3.5?
>
> If your app didn't contain a vers=1 or vers=1000 resource for some
> reason, then calling DmGetResource will wind up searching through the
> chain of opened resource databases. Hmm, usually it would only wind
> up getting the version resource from another app if your app was
> sub-launched.
>
> One easy thing to do is to call DmSearchResource with the handle you
> get back, and use the db ref result to determine which resource file
> it came from.
>
> -- Ken
>
> Ken Krugler
> TransPac Software, Inc.
> <http://www.transpac.com>
> +1 530-470-9200
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/