From: "Chris Percival" <[EMAIL PROTECTED]>
Subject: Using appVersionID/appVersionAlternateID


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

I just tested your code on 3.5 (POSE, palmos35-dr4-en-color.rom) and it
worked correctly.  The attempt to get the appVersionID resource returns a
null handle, then the attempt to get appVersionAlternateID succeeds.  I'd
have to guess that, somehow, you are "being a muppet".  :)



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