Hi there,
I'm running into a problem with a localization project.
I'd like to have one English and one French target that define different
preprocessor macros.
In this case, the English and French versions are separate apps, with
different creator IDs, but shared code.
For example, in my startup code I'd like to do something like:
#ifdef TARGET_FR
// Check for International Manager.
// If not present, issue error and exit.
#endif
Idea #1: Set up preprocessor definitions in the project settings.
I can't figure out how to do this in CW 6.5. I've checked the manuals, kb
and list archive.
Idea #2: Include a config.h file, where I have two versions, each in a
different access path.
Unfortunately CW 6.5 ignores the access path and always includes the
English config.
My directory structure:
{Project}
\config-en
config.h
\config-fr
config.h
In the French target, I add the config-fr access path; in the English
target, I add the config-en path. This doesn't work! I've also tried this
with separate projects, rather than separate targets.
I'd really like to keep one common code-base.
Thanks!
Jaba Adams
Shinyfish Software
http://www.shinyfish.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/