Try your StrCopy() function without the '&'s. You're passing a Char **
type when the function wants a Char *.
-----Original Message-----
From: Jim Garozzo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 8:42 AM
To: Palm Developer Forum
Subject: StrCopy Problem
For some unknown newbie error that I'm completly missing the point, that
when i'm using StrCopy i'm getting incompatible pointer type warning and
and
unknown parse error.
I'm stuck and was wondering what goofy mindmeld error I did in this
line:
StrCopy(&tempdata, &no);
Below is more info.
Thanks!
Jim
Error Output:
frmMain.c:45: warning: passing arg 1 of `StrCopy' from incompatible
pointer
type
frmMain.c:45: warning: passing arg 2 of `StrCopy' from incompatible
pointer
type
frmMain.c:46: parse error before `else'
make: *** [Debug/frmMain.o] Error 1
********************
Char tempdata[15];
const Char alarm[] = " Alarms";
const Char no[] = "No";
Int16 size;
SysAlarms = 0;
StrIToA(tempdata, SysAlarms);
if (SysAlarms == 0)
size = 9;
StrCopy(&tempdata, &no); <-- Line 45
else if (SysAlarms == 1)
size = 8;
else
size = 9;
StrNCat(tempdata, alarm, size);
--
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/