"Renaud Amar" <[EMAIL PROTECTED]> wrote in message
news:70007@palm-dev-forum...
>
>
> Hi Ben,
>
> Sorry to dig out this old post ...
> This was about how to set up some code resources in CodeWarrior,
> you said that I could have a look at DemoHack to see how to setup a .r
file
> to pull my code in the main application.
> But I don't really see how to do that with the .r file included in
DemoHack,
> which is the following :
>

> include "patc1000.tmp";
> include "patc1001.tmp";

These lines are including separately compiled code resources into the
link.


> type 'tAIN' {
> align word;
> cstring; // name
> };
>
> type 'TRAP' {
> hex integer; // trap number
> };

These lines define a new type for use by the Rez compiler.

> resource 'tAIN' (3000) {
> "It's DemoHack!"
> };
>
> resource 'TRAP' (1000) {
> 0xA171
> };
>
> resource 'TRAP' (1001) {
> 0xA191
> };

These lines use the types defined above to add resources of type 'tAIN'
and 'TRAP'.


> Do I have to use the same kind of syntax to pull the code resource in
my
> main application ?
> how do I do that ? (there's not a lot of documentation on Rez)

Rez's documentation is part of Apple's MPW toolset documentation.  We
don't have the rights to ship Apple's manual, but its downloadable from
their developer site, http://developer.apple.com/.



-- 
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