Hi Ben,
But in the included .H file, I can't use #if __ide_target("Debug"). This means
I have to create a separate .H file for each target. Am I right?
Pity! I really liked the elegance of "#if __ide_target".
No, the .h file would just use #ifdef DEBUG, and that would only be defined by the .rcp file that's pulled in for the debug target, it would read like
// main_dbg.rcp #define DEBUG #include "main.rcp"
The debug target would have main_dbg.rcp, but not main.rcp as one of its files.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
