At 4:33 AM +0200 8/7/01, Aaron Ardiri wrote:
>On Mon, 6 Aug 2001, Paul Nevai wrote:
>> #define stringRsrc 'tSTR'
>> type stringRsrc {align word; cstring;};
>> read stringRsrc (2000) "Help_x";
>
>read stringRsrc (2000) "Help_x\0";
>
> tried that?
Aaron,
Step a little closer to the e-mail when you read it. :-) See where
Paul said '"Help_x" is a MetroWerks text file saved in a Mac format'?
NULL-terminating the name of the file isn't going to help.
My own suggestion would be to add a snippet of code that would
NULL-terminate the resource if it weren't already. Or remove the
requirement that the string be NULL-terminated.
--
-- Keith Rollin
-- Palm OS Emulator engineer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/