Steve,

StrIToA IS OK.  But there needs to be buffer memory allocated for the string
it writes to.
Try:
char posx[12];
char posy[12];

Regards,
Randy Maxwell

-----Original Message-----
From: steve choi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 12:06 AM
To: Palm Developer Forum
Cc: [EMAIL PROTECTED]
Subject: Help: Integer to String


Hi..

I am trying to develop signature system for palm.
For testing, I want to display the position of pen to label.

My code looks like following:

I called display function using x and y obtained from EvtGetPen


***********

EvtGetPen( &x, &y, &penDown );
display(x,y);

*************
void display(Word x, Word y)
{

char * posx;
char * posy;
FormPtr frmP;

frmP=FrmGetActiveForm () ;
posx = StrIToA (posx, (Int32)x) ;
posy =StrIToA (posy, (Int32)y) ;

FrmCopyLabel(frmP, myx, posx);
FrmCopyLabel(frmP, myy, posy);

}

I think StrIToA  function is not what I want.

Is there any guy who can tell me which function is for converting
integer(word) to string?

Any comment is great help for me..

Thanks .


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

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

-- 
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