"Chris Tutty" <[EMAIL PROTECTED]> wrote in message
news:62919@palm-dev-forum...
>
> Hi,
>
> Just reading the manual that came with CW7 and on page PAL-119
> I've found the interesting statement that an application must not have
> resource ID's above 10000 - they're for system use.
>
> This is fair enough but I'd like to know why this requirement isn't
> enforced (or even *mentioned*) by constructor. I'm building a
> complex suite of apps with a lot of resources and a lot of resource
> sharing so I'd been using resource ID's above 10000 just as a
> side-effect of using 1000's to divide groups of IDs for management
> purposes.
Yes, please complain to Palm about Constructor's behavior. In Palm's
defense, since they use Constructor to build the resources for some OS
components, not disabling the 10000+ range makes it more useful to them.
Still, they should have some sort of switch.
> I can renumber everything but it's a pity to have to do this rework
> because the development environment is lacking a simple warning.
A faster way to rework may be
1) Disassemble the .rsrc file to a .r file. Do this by setting up a
file mapping between .rsrc and the Rez compiler in a CW project. To do
this, add a new mapping that goes from file type 'RSRC' to compiler
'Rez'. Add it to the list, apply the changes, then right click on your
.rsrc file and choose disassemble. You will get prettier output if you
first set the Rez prefix to "UIResDefs.r".
2) Save this dump as a .r file and modify all the numbers manually.
3) Add this .r to your project, remove the .rsrc, and recompile. This
will give you a .prc with all the renumbered resources.
4) Finally, open the .prc file with Constructor 1.6 or later, copy and
paste the resources out of the executable into a new .rsrc which will
have the correct numbering.
Good luck!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/