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

This declares s as a single character variable, which is an integral
value.

>  // 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);

This doesn't call StrIToA, it redeclares it.  You need to instead say

    StrIToA(s, SysAlarmsDB);

Of course, you also need to declare s properly as a pointer to char or
an array.  If you do the pointer, you also need to allocate space for
the string.

>
>  FrmHideObject(form, SysAlDispIndex);
>  FrmCopyLabel(form, lblSysAlDisp, s);                <--   (Line 58)
>  FrmShowObject(form, SysAlDispIndex);
>
> }


--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau



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