At 02:17 AM 7/26/2004, you wrote:
Hello, I'm trying to save some runtime-drew bitmap into a pdb resource database. I have some problems because I need a high density BMP, but I don't understand how to use BitmapTypeV3 type. So I get the files "BitmapRsrc.c" and "BitmapRsrc.h" from Knowledge Base, to define the BmpRsrcV3Type type.

I include "BitmapRsrc.h" in the obj that needs of that type, but I can't compile BitmapRsrc.c to BitmapRsrc.o, there are many errors inside BitmapRsrc.c, which first of all is:
BitmapRsrc.c:72: parse error before '*'
BitmapRsrc.c: In function `VerifyBitmap':
BitmapRsrc.c:77: `bmp' undeclared (first use in this function)
BitmapRsrc.c:77: (Each undeclared identifier is reported only once
BitmapRsrc.c:77: for each function it appears in.)
BitmapRsrc.c: In function `HasHighDensityAPIs':
BitmapRsrc.c:131: `sysTrapSysHighDensitySelector' undeclared (first use in this
function)


And so on.
I use PRC-Tools with gcc 2.95.3
Any suggestion?

The currently posted BitmapRsrc code has problems with the current Palm OS SDK. The macro sysTrapSysHighDensitySelector changed between the beta versions of the Palm OS 5 SDK that were used for this code, and the current 5.0R3 or 5.4 SDKs.


The easiest fix is to replace 'sysTrapSysHighDensitySelector' with 'sysTrapHighDensityDispatch', but a better fix is to replace this code with the code from the Palm OS 68K SDK Reference at http://www.palmos.com/dev/support/docs/palmos/CompatibilityApdx.html#996955 that uses a feature to identify high density support.

Thanks for the reminder to get this KB article updated. I'd started on this last month, but I'd hit problems with how PRC-Tools handles inline functions, so I'd not yet finished things up to the point of posting it online.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/



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

Reply via email to