Greg,
It worked! Thanks for all the details and the help. I followed your
instructions, locked the handle
and created the database. Thanks.
Larry
Greg Martin wrote:
> Larry,
>
> You can create a binary and other resources with CodeWarrior by creating a
> text file with a ".r" extension in the RSC directory of your project
> (example: "resources.r"). This will be a resource script. To add a binary
> resource use the following example:
>
> read 'DICT' (1001) "dict.bin";
>
> 'DICT' is the resource type and can be whatever you choose just as long as
> it is four characters.
>
> (1001) is the resource id just like resource ids you assign with
> Constructor.
>
> "dict.bin" is the name of the file to include as a binary resource. The
> base path is the RSRC directory and you can use relative paths as in
> "..\..\myfiles\dict.bin".
>
> You then need to add the ".r" file to your project. If the project
> stationary you're using doesn't have a file mapping for ".r" files,
> CodeWarrior won't understand what to do with it. In that case, go to the
> project settings, to the "File Mappings" settings, and add the following
> file mapping:
>
> File Type: TEXT
> Extension: .r
> Flags: None
> Compiler: Rez
>
> You then access the resource in your source code using the normal
> DmGetResource() function as in:
>
> MemHandle resHandle = DmGetResource( 'DICT', 1001 );
>
> Just look at the Palm documentation for more details on using resources if
> you're unfamiliar with them. Remember that no resource can be larger than
> 64K.
>
> Greg
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/