I'm fairly new at PilRC having recently converted a project from Constructor resources to .rcp files using the method described on Ben Combee's site (thanks Ben).
One of my goals in doing this was to have control over the definition of constants. I've found that while PilRC supports #define for ID numbers it does not support strings (please correct me if I'm wrong). For example, in a header file I would like to define:
#define APP_VERSION "1.0.0"
and in my .rcp file say:
VERSION ID 1000 APP_VERSION
In addition, I'd like to use preprocessor conditionals within a form definition. They work OK outside of a definition. For example:
#ifdef ABC FORM ID ... END #else FORM ID ... END #endif
is OK but
FORM ID ...
BEGIN
#ifdef ABC
LABEL ...
#else
LABEL ...
#endif
ENDdoesn't work.
I was thinking of renaming the .rcp file and running it through a C preprocessor first with the output being input to PilRC but I'd like it to automatically build from within CW9 and I don't know how to do that.
Any advice?
Thanks, Bob
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
