From: "Dan Hewins" <[EMAIL PROTECTED]>
Subject: WinDrawBitmap problems on OS 3.3 in app compiled w/3.5 headers
> I have a section of code that looks like this:
> -----------
> MemHandle iconH = NULL;
> UInt16 id;
> BitmapType* iconP;
>
> iconH = DmGet1Resource(iconType, id); // find DB's icon
> iconP = (BitmapType*) SynMemHandleLock(iconH);
> WinDrawBitmap(iconP, x, 0);
> -----------
Shouldn't you initialize id before using it? Are you sure your DB is the
most recently opened resource DB? What is SynMemHandleLock?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/