Ok, here it is:
...
// d.bmp is a BitmapType*, and r.bmp is a BitmapType
BmpCopy(d.bmp,&r.bmp);
...
void BmpCopy(BitmapType *dest, BitmapType *origem) {
WinHandle scrW,BmpWindow;
UInt16 errno;
RectangleType rect;
RctSetRectangle(&rect,0,0,defaultWidth,defaultHeight);
scrW = WinCreateBitmapWindow(origem,&errno);
BmpWindow = WinCreateBitmapWindow(dest,&errno);
WinCopyRectangle(scrW,BmpWindow,&rect,0,0,winPaint);
}
...
And the POSE msg is: "MemoryMgr.c, Line:4450, Invalid Chunk ptr"
Fabr�cio de Paula
----- Original Message -----
From: "Joe" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 01, 2002 1:11 PM
Subject: Re: Copying Bitmaps
> --- fabricio <[EMAIL PROTECTED]> wrote:
> > So I thank right, but used these functions wrong. I've
> > tryied them, but it doesn't work well, POSE gives an
> > error to me. I think I'm doing something wrong, of
> > course. Do you have a sample code with this, for I
> > compare your code and mine?
>
> Show us your code and tell us which line causes the error and which
> message POSE gives you. Then it will be easier to help you.
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - send holiday greetings for Easter, Passover
> http://greetings.yahoo.com/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/