Two options:
1) Use PilRC plugin for CodeWarrior, and use DATA or HEX commands (see
http://www.calliopeinc.com/devcorner.htm to download).
2) Use Rez, which comes with CodeWarrior. Format is
data 'FOOB' (1024) {
$"0502abff62"
};
which creates a resource named 'FOOB' with id 1024 that contains five bytes
with the values 0x05 0x02 0xab 0xff and 0x62.
2b) Use Rez and specify:
read 'FOOB' (1025) "BinaryFile";
which'll read the bytes from the file BinaryFile and put them in the
resource with type 'FOOB' and ID 1025.
To set up your project to use Rez, in the File Mappings panel of the
CodeWarriorProject Settings dialog, add a mapping with file type TEXT,
extension .r and compiler Rez. Be sure all four flags (Resource File,
Launchable, Precompiled, and Ignored by Make) are clear for this file
mapping.
Neil
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545
----------
>From: Paul Bohme <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: DATA or HEX resources with CW tools?
>Date: Fri, Sep 22, 2000, 2:04 PM
>
> Have a nifty little nut to crack: Have need of stuffing a binary blob of a
> resource into an app, but am chained (kicking and screaming, to be sure) to
> CodeWarrior and Constructor on Windows2000. I so far am unable to find a
> way to create a simple binary resource, any hints/ideas/thots?
>
> -P
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/