Hi Jim

> frmMain.c:58: warning: passing arg 3 of `FrmCopyLabel' makes pointer from
> integer without a cast

FrmCopyLabel() expects a null termined char pointer as third argument, not a char!

are you sure that your number has only one digit? 
and even than you have to use an array char[2] 1 digit + 1 null terminator.
if not, you have to expect 10 digits + 1 sign + 1 null terminator = char[12] (worst 
case, INT32)

your code should look something like:

static Char str[12];
[...]
StrIToA (str, NUMBER);
[...]
FrmCopyLabel(formptr, labelID, str); 

be sure, you have initialized the label with at least 11 chars, and str is valid as 
long as the form and label respectively are alive.

by(e)
Stephan

-- 
PGP Fingerprint: 0090 E02F 39A8 F2AF 6A79 43D7 B847 C26D 108E E2F0
PGP PublicKey: http://www.unet.univie.ac.at/~a9526342/sveigl.asc

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