> So, has anyone figured out how much code space is required for the resource
> approach as opposed to the hard coded method?
>
> It seems often the code required for using resources will be larger than the
> string itself.

Some strings are used for user interface, and should be stored in resources.
Others are used internally by your application (for example, the name of
your database) and aren't localized.

For those strings that won't be localized, if you're using CodeWarrior, I'd
recommend using string literals (for example "foo").  The strings are
embedded in the code itself, and so reside in the storage heap rather than
the dynamic heap.

It's a shame that the PRC-Tools don't have an option to store string
literals directly in the code rather than in global space.  For the Palm OS,
you never want string literals in global space (because it takes up dynamic
heap space, because there's extra time to initialize those globals, and
because there are cases where globals aren't allowed).

Neil

--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA  92374
(909) 793-5995     [EMAIL PROTECTED]      fax: (909) 793-2545

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