> EvtGetPen(penX, penY, penDown);
here you are passing int in place of an Int16 *.

So your code should go like this:
EvtGetPen(&penX,& penY,& penDown);

Ritesh  >:)



<[EMAIL PROTECTED]> wrote in message news:52481@palm-dev-forum...
>
> I am not really sure what I am doing wrong. Can someone please fix my code
and tell me what they did so it will help my learning the palm OS
programming platform? Thanks!
>
>                   GOD Bless!!!
>
> case penMoveEvent:
> int x,y;
> int penX,penY;
> Boolean             penDown;
> EvtGetPen(penX, penY, penDown);
>         penX=x;
>         penY=y;
>          WinDrawLine (penX,penY,x,y);
>
>         break;
>
>



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

Reply via email to