> In short, I have one variable I would like to switch between one version of
> the application and another, which will trigger the display of an extra
> string in the about box. I figured I could set up two targets, appForMe.prc
> and appForOthers.prc and get the global constant to switch accordingly,
> where appForMe.prc sets showString to false and appForOthers.prc sets
> showString to true. Does anyne know how to do this? Should I use a
> compiler directive and if so, how would I do this? A little code or
> reference to a manual would be very helpful.
You have multiple solutions here:
- Use resources. You can use a resource file with only one string. In one
target, include the resource file with an empty string. In the other target,
include the resource file with the filled string.
- In your two targets, instead of including the "standard" precompiled
header file (see the C/C++ Language panel in the project settings), include
your own header file which only does two things:
. #include the standard precompiled header file
. #define something for conditional compilation
One of the header files will trigger compilation without additional string
display, the other one will display the string.
Hope this helps,
Florent.
--
Florent Pillet, Code Segment [EMAIL PROTECTED]
BrainForest, outlines and action items for Palm OS handhelds
-> Aportis Technologies Corp. http://www.aportis.com/
PowerGlot, the premier localization tool for Mac OS software
-> PowerGlot Software http://www.powerglot.com/
Palm Buddy, MacOS active link companion for PalmOS handhelds
-> ...and other tools... http://perso.wanadoo.fr/fpillet/