Sure. 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" };
The tver resource as set in my .rsrc file is "" (blank). When I read the
tver resource when stepping thru my code, it is "". I expected it to be
"1.0.1".
The code I use to read the 'tver' resource is:
versionH = DmGet1Resource(verRsc, appVersionAlternateID);
if (!versionH)
versionH = DmGet1Resource(verRsc, appVersionID);
if (versionH) {
szVerP = MemHandleLock(versionH);
StrCopy (versionStr, szVerP); <<< szVerP is always an empty string
}
if (versionH)
DmReleaseResource (versionH);
I've also tried including "palmtype.r" into my "foo.r" file and it made no
difference.
Appreciate any enlightened ideas.
--Alan
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Scott
> Johnson (Bellevue)
> Sent: Monday, August 21, 2000 2:13 PM
> To: Palm Developer Forum
> Subject: RE: including .r files in CW r5 for Win
>
>
> > From: P. Alan Johnson [mailto:[EMAIL PROTECTED]]
> > Anyone utilizing .r files on Windows to set the version number
> > of their projects?
>
> Here! Works great. The 'tver' resource is just a simple string, so it's
> easy to either hand-edit or to update automatically as part of an
> automated
> build process.
>
> > I might have to figure out a way to use pilrc if I
> > can't get this working.
>
> That shouldn't be necessary. Can you give details?
>
> -slj-
>
>
> --
> 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/