On Tue, Apr 11, 2000 at 03:10:25PM -0700, Peter Epstein wrote:
> If the only difference you want between your application versions is whether
> the resources are color or black and white, you should have no problem
> setting up separate targets that specify different resource files while
> sharing all the same code.
And if you indeed want to compile out the extra color code in the b&w
version (which personally I would want to do if it made a big
difference), you could try bracketing the color code with, eg:
#ifdef COLOR
DoColorStuff()
#endif
and then for the color target, #define COLOR in a prefix file and
include that in the target settings (under the 'C/C++ Language'
settings panel). That way you have a single source file for both
versions.
> Of course, if a user beams their black and
> white version to a color device, the app won't be color.
It'd probably be a good idea to clearly identify that each version is
color or b&w, eg, a string like "B&W Version" or "Color Version" in
the About box, so that if someone w/ a color device ends up w/ the
"B&W Version", he'll realize that there must be a color version, and
likewise for someone w/ a b&w device.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html