You can use string resources to store error messages. Look at the
ShowErrorDialog() function in the "Finger" example.

Bozidar


> I just used pilot-file to look at my PRC file and I realized that GCC puts
> literal constants into the code resource.  Such that a line like this will
> take up code space for the literal string:
>
>  ShowErrorMsg("missing required rfc822 fields.");
>
> Whereas this will not:
>
>  char message[]="missing required rfc822 fields.";
>  ShowErrorMsg(message);
>
> Is this normal?  And I suppose I should get rid of all of my literals and
> make them into globals so that I won't run out of 32K code space.
>  But then
> won't the globals eat into my ~60K dynamic heap?
>
> What is the best way to store strings like that?
>
> /* Chris Faherty <[EMAIL PROTECTED]>, finger for PGP */
>
>
>

Reply via email to