At 12:17 PM 7/11/2003, Tucker, Jay wrote:
I'm using the PilRC Designer 2.0.6.0 provided with CW 9.0 to create my app's
MyApp.rcp and MyAppRsc.h files. The actual ID numbers in the .h file are
generated automatically by PilRC Designer. (I'm also doing a little direct
editing of the source files in a text editor.) Looking through the file, I
notice that many ID's are duplicated -- often half a dozen times or more. So
far, things seem to be working OK, probably because duplicate ID's are used
in different parts of the program where there's no danger of conflicts, but
I have a suspicion that this can't be right and that I'm eventually going to
run into trouble because of this. Should I go back and manually renumber
everything so that every ID is unique? Is there some PilRC Designer setting
that will automatically prevent duplicate ID's?

Don't let PilRC Designer generate your .h files. Instead use PilRC's own GENERATEHEADER and RESETAUTOID commands. Just put GENERATEHEADER "myheader.h" at the top of your .rcp file, and use RESETAUTOID to set the starting ID for each section of your RCP file. Be sure to remove the #include line from your file too, since that's what triggers PD's generator.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to