I'm sorry, I assumed that the source code was known... the BitmapRsrc.h header
includes only <PalmType.h>, while BitmapRsrc.c includes only "BitmapRsrc.h".
Lines from 44 to 77 are:
#include <PalmOS.h>
#include "BitmapRsrc.h"
// Just before deleting a bitmap, fill it with this byte.
// Then, if used later and error checking is on, this code
// can detect the use of a deleted bitmap.
#define DEAD_FILL_BYTE 0xFE
#if 0
#pragma mark -
#pragma mark === Error Checking Level ===
#endif // 0
// ErrIf_() gives a fatal error on debug builds and just
// goes to the "cleanup" for non-debug builds.
#if ERROR_CHECK_LEVEL == ERROR_CHECK_FULL
#define ErrIf_(test, message) ErrFatalDisplayIf(test,message)
#define SimpleVerify_(bmp) VerifyBitmap(bmp)
#else
#define ErrIf_(test, message) if (test) goto cleanup
#define SimpleVerify_(bmp) while(false) { ; }
#endif
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
static Boolean VerifyBitmap(const BmpRsrcType * bmp)
{
// Do some basic checking. Nothing special... just something
// fast that will catch some of the common mistakes.
ErrIf_(bmp==NULL, "Bitmap is NULL");
This is a Palm file, which is introduced by this text:
/***********************************************************************
*
Sample Code Disclaimer
Copyright © 2002 PalmSource, Inc. or its subsidiaries. All
rights reserved.
You may incorporate this sample code (the "Code") into your applications
for Palm OS(R) platform products and may use the Code to develop
such applications without restriction. The Code is provided to you on
an "AS IS" basis and the responsibility for its operation is 100% yours.
PALMSOURCE, INC. AND ITS SUBSIDIARIES (COLLECTIVELY, "PALMSOURCE") DISCLAIM
ALL WARRANTIES, TERMS AND CONDITIONS WITH RESPECT TO THE CODE, EXPRESS,
IMPLIED, STATUTORY OR OTHERWISE, INCLUDING WARRANTIES, TERMS OR
CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
NONINFRINGEMENT AND SATISFACTORY QUALITY. You are not permitted to
redistribute the Code on a stand-alone basis and you may only
redistribute the Code in object code form as incorporated into your
applications. TO THE FULL EXTENT ALLOWED BY LAW, PALMSOURCE ALSO EXCLUDES ANY
LIABILITY, WHETHER BASED IN CONTRACT OR TORT (INCLUDING NEGLIGENCE), FOR
INCIDENTAL, CONSEQUENTIAL, INDIRECT, SPECIAL OR PUNITIVE DAMAGES OF ANY
KIND, OR FOR LOSS OF REVENUE OR PROFITS, LOSS OF BUSINESS, LOSS OF
INFORMATION OR DATA, OR OTHER FINANCIAL LOSS ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THE CODE. The Code is subject
to Restricted Rights for U.S. government users and export regulations.
SAMPLE NAME: Bitmap Resource
FILE: BitmapRsrc.c
DATE: 6/15/2002
DESCRIPTION: Source Code
Requires Palm OS 5 SDK (DR12) or later
*
*
*****************************************************************************/
I don't know if I'm doing well using BmpRsrcV3Type instead of BitmapTypeV3, I need to
have some hints about storing high density bitmaps realized in realtime into a
database for fast recall on program start.
Thanks for help,
BrownB
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/