At 10:58 2002-10-25 +0530, you wrote:
   Now I'm trying to get the resouces in a byteArray first and then convert
the whole byteArray to a resource using
   DmCreateDatabaseFromImage

[ useless code deleted ]

It does create a prc file but when i open it , it gives a Launch Error: The
Application can not be launched because of
a system Error.  Can any body tell me whatz going wrong ??
Why would you expect this code to work? You're building a large byte array that's a concatenation of all the resources. You're not storing any of the meta information, like resource type and ID, and you aren't storing a proper PRC file header at the start of your array. If you want to use DmCreateDatabaseFromImage, your pointer must point to something that would be a proper PRC file if saved straight to disk.

It also seems to me that you're doing a lot of extra work to do something that ExgDbRead and ExgDbWrite already do for you, which is turn resource databases into a serialized form and back.

Would you mind explaining what you're really trying to do?

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to