Hi Danny.  Thanks for your reply.  I am working on this again (after a nice
little vacation :)  and have a/some questions.

I need to copy a PRC from ROM to RAM.  I have a method to detect that the
PRC is in ROM.  I wrote a routine to use ExgDBWrite to write the PRC file
out from ROM into a stream.  Then it takes the stream and uses ExgDBRead to
put it back into RAM.   However, I am not modifying any of the header
information in the PRC (such as the name) and the ExgDBRead function calls
the DeleteProc function to try and delete the original PRC in ROM since I'm
trying to write the same named file out to RAM.

What I need in the end is a file with the same name in RAM as in ROM.  When
the user runs the program it will automatically get the one from RAM.

I'm not sure how to proceed with getting the stream back out to RAM with
ExgDBRead.  Should I modify the header information to change the name before
calling ExgDBRead which will cause a new PRC in RAM to be created with a
different name?  Then can I call DmSetDatabaseInfo to change the name back
to the same as what's in ROM?

I'm not sure how to proceed but will try a couple different approaches.  Any
tips you can give me would be appreciated.  Thanks.



"Danny Epstein" <[EMAIL PROTECTED]> wrote in message
news:59550@palm-dev-forum...
>
> > Can you point me into the direction on how to make an installer app?
>
> Read the docs and search the archives for DmCreateDatabaseFromImage and
> ExgDBRead. The former is limited to approximately 64K, but it easier to
use.
> In your case, the problem is somewhat simplified because you're working
from
> ROM. Normally, the installer would want to delete itself. Also, you
probably
> don't have to worry about compression.
>
> The most common question with DmCreateDatabaseFromImage is how to generate
> the resource. Search the archives for discussions on how to do this.
People
> have a lot of trouble with ExgDBRead, so there's plenty of useful info in
> the archives. :)
> -
> Danny
>
>



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