if you use

HEX "type" ID HexData
0x53 0x61 0x67 0x61 0x72 0x00

you must use

hexMemH = DmGetResource ('type', HexData);

similar for DATA

resource is found using type and id. so you must set same type as you are
searching for. type is generally 32bit integer, but for simplicity it is usually
written as 4 ascii letters


Sagar Mody wrote:
> Hi,
> 
>> HEX "type" ID res_id
>> 0x00 0x01 0x02 ...
> 
> I Tried :
> HEX "Hex Data" ID HexData
>     0x53 0x61 0x67 0x61 0x72 0x00
> 
>> DATA "type" ID res_id
>> "blob.bin"
> 
> I Tried :
> DATA "Binary Data" ID BinData
>     "icon-lg-8-d144.bmp"
> 
> This compiled well. But I try to get the same resource records by :
>    hexMemH = DmGetResource (binaryGeneralRscType, HexData);
>    bmpMemH = DmGetResource (binaryGeneralRscType, BinData); 
> 
> both returns NULL.
> 
> Does the DATA tag accept only .bin files ?
> What sould i mention as "type" in .rcp file ?
> And, what should i mention as type in DmGetResource API ?
> 
> Regards,
> Sagar Mody
> 

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

Reply via email to