At 4:00 PM -0500 9/29/00, Richard Burmeister wrote:
>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?
Well, id is initialized and set properly. SynMemHandleLock is
MemHandleLock. Those aren't the problems. It's the WinDrawBitmap
that is the problem. I left out a lot of the surrounding code.
Dan
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/