At 01:36 2002-12-17 +0900, you wrote:

I am trying to get some Windows bitmaps into a PDB which should be of
'data' type with a specific creator ID, using pilRC.

I did pilrc -ro -o test.pdb test.rcp

and the rcp file just lists the bitmaps like this

BITMAPCOLOR16K ID 1010 "image1.bmp"
BITMAPCOLOR16K ID 1020 "image2.bmp"
BITMAPCOLOR16K ID 1030 "image3.bmp"

The rcp file and the bitmaps are converted nicely to a PDB which I can
open in a different PRC and access the bitmaps. The problem is, the
newly created test.pdb has a creator ID of 'pRES' and type of 'RESO'.

Is there a way for me to specify the type and creator ID in the rcp file?
PilRC will only create resource databases (PRC format), not "data" databases.

PilRC has command line options to specify the type/creator of the output PRC file. Use "-type XXXX -creator XXXX" on your command line. You'll have to open this database on the device using DmOpenDatabase and then DmGetResource to get the bitmaps, but it should work fine.

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