"Ron Nicholson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 20 Nov 2003 12:03:42Gregg Woodcock writes:
> >P.S. How do all you programmers handle the creation/compile/release date
in
> >your apps? Do you use a string resource in the RSC? Do you have a good
way
> >to auto-populate this or do you just manually set it before the last
compile
> >prior to release?
In resource file:
VERSION ID 1000 "0.1"
ALERT ID AboutAlert HELPID 1001 DEFAULTBUTTON 0 INFORMATION
BEGIN
TITLE "About"
MESSAGE "Version ^1"
BUTTONS "OK"
END
In code: (Note: Thrown together - check carefully)
MemHandle tempH;
Char* temp;
if (tempH = DmGetResource (verRsc, 1000)) {
if (temp = (Char*)MemHandleLock (tempH)) {
FrmCustomAlert(AboutAlert, temp, " ", " ");
MemPtrUnlock(temp);
}
DmReleaseResource(tempH);
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/