Sagar Mody wrote:

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

You try to read data of type binaryGeneralRscType but your resource does not
contain any data of that type. You shall use 4 bytes for your data types (
"Binary Data" is not correct). pilrc shall spit out a warning i think, but it
does not. So it shall rather be:

 DATA "BinD" ID BinData "icon-lg-8-d144.bmp"

 binMemH = DmGetResource ('BinD', BinData);

note 'BinD' is being used for DmGetResource() call, not
"BinD".

Regards,
-- 
"Daddy, what "Formatting drive C:" means?"...

 Marcin                       http://wfmh.org.pl/carlos/

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

Reply via email to