Mauricio Tavares wrote in message <39005@palm-dev-forum>...
>
...
> Which is why I would love to make my code separated into platform specific
>and independent. I've never done that but think it is the way to go. So,
>if I want to write text on a screen, I would say PopupDamnText("The Text")
>where PopupDamnText() would then be defined for each platform.
That's kind of backwards. What you really want is to never use literal
text in the code. Instead, use tSTR resources for your text and use
the resource IDs in the code. For example you would write
PopupDamnText(TheTextString);
where resource.h has
#define TheTextString 1000
and the tSTR 1000 is defined as "The Text" in your .r, .rcp or .rsrc file.
Of course, if you are using a different language you would have a different
.r (.rcp, .rsrc, whatever) file that would define tSTR 1000 as "Le Text" or
"Das Text" or whatever was appropriate. So, as much as possible the
_resources_ change per language, but the _code_ doesn't.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/