hello forum,

I want to draw someting to a certain area of the screen. When I use the
following steps, I have a sys0502 error. Does anybody know what it means?

1. draw a pic using "paint" program of windows, which will be shown on the
screen.
2. in Pilrc, create a bitmap, assign the pic to this bitmap
3. then I try to draw something:

MemHandle hMousePad;
BitmapType *pMousePad;
MemHandle win;

hMousePad = DmGetResource('Tbmp',MousePad); //MousePad is the image

if(hMousePad!= NULL)
{
        pMousePad=(BitmapPtr)MemHandleLock(hMousePad);
        win=WinCreateBitmapWindow(pMousePad,&error);
        if (error) ErrAlert(error);     
        WinSetDrawWindow(win);
        ...
        ...
}

I found some problems:
a. pilrc complains some varibles of the bitmap missing;
b. "ErrAlert" complains sys0502

I don't care the first problem, but it seems i have to solve the second
one. does anybody know how to do it correctly?

Eric





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

Reply via email to