Can anyone help me figure out why I'm getting an error trying to use convert
integer to ascii and then saving it in a label to be displayed. I keep
getting a without cast error when I thought i had converted it properly.
Thanks for any help you can provide.
Jim
*******************
Compilation Error:
Compiling frmMain.c...
frmMain.c: In function `ShowIFCMainData':
frmMain.c:58: warning: passing arg 3 of `FrmCopyLabel' makes pointer from
integer without a cast
******************
Program
static void ShowIFCMainData()
{
// GetMainFrmData(SysAlarmsDB);
static Char s;
// Get a pointer to the active form:
FormType *form = FrmGetActiveForm();
// Get the indices of the labels:
UInt16 SysAlDispIndex = FrmGetObjectIndex(form, lblSysAlDisp);
// Set the value of the lblSysAlDisp label:
Char* StrIToA (Char* s, Int32 SysAlarmsDB);
FrmHideObject(form, SysAlDispIndex);
FrmCopyLabel(form, lblSysAlDisp, s); <-- (Line 58)
FrmShowObject(form, SysAlDispIndex);
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/