I expect the approach would be something similar to that
required to turn a midi file (.mid) into a record suitable for
the system alarms file -- there a few bytes of wrapping
required. What you want to create is a binary resource
the contents of which would be your PDB file. You would
need to wrap that with the resource type and id #. A simple
C program could be used for this once the exact format
requirements are known. You could then convert your
PDB file into a resource record and use PAR to append
that record to your PRC file.
Otoh, there may be a simpler way to do this. I am fairly
certain that either PilRC or Rez (or both) have the capability
to specify a binary resource, the contents of which can be
found in a file.
(looking through files ...)
Here we go, this is from Neil Rhodes about using Rez for
this purpose:
<blockquote>
Let's say you've got a binary file (foo.bin) you'd like to have included as
a resource in your application.
Create a .r file with the following line in it:
read 'XXXX' (2000) "foo.bin" ;
That'll read "foo.bin" and create a resource (of type 'XXXX' with ID 2000)
with its contents.
This assumes you've already set up the file mappings so that .r files are
compiled by Rez.
</blockquote>
Whether PilRC has a similar capability or not, I do not know ... but
I would be surprised if it did not.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
DeAnna Davidson wrote in message <32641@palm-dev-forum>...
>
>I know this may seem silly, but indulge me. Is it possible to use PAR to
>turn an already created pdb file into a prc and then append the records
from
>the new prc as resources to a different prc? I've loaded par and tried
>dozens of combinations of things, but nothing seems to be working out quite
>right for me. Better yet, what I really want to do is append the entire
>pdb, header intact, to the prc as a resource and then create a database
from
>image on the palm. Can I add an entire pdb as a resource to a prc file
>using par?
>
>TIA,
>
>DeAnna
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/