> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> The only place I know to change the icon name is in constructor.
> This is not target specific.
> Would I need to create seperate resource files and projects
> for each target?  Would this do it?  It would be a maintanence nightmare.

You can define the icon name in a single Rez (.r) text file instead of
Constructor.  This makes it easy to use regular conditional compilation
(#if, #ifdef) based on #define macros from each target's own prefix file.
Something like this:

        #if ERROR_CHECK_LEVEL == ERROR_CHECK_FULL
                resource 'tAIN' (1000) { "My App (dbg)" };
        #else
                resource 'tAIN' (1000) { "My App" };
        #endif

(This example assumes standard project setup with Debug and Release targets,
each having a prefix file that defines ERROR_CHECK_LEVEL appropriately.)

-slj-


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to