Hello Everyone,
I am trying to graph this onto a gadget..but now its telling me that the 
function "sin" is undefined..any help or hints will be appreciated..
Thanks..

static Boolean GraphFormHandleEvent(EventPtr eventP)
{
        Boolean handled = false;
        FormPtr frmP;
    extern double sin(double arg);

case ctlSelectEvent:
                        switch (eventP->data.ctlSelect.controlID)
                                {
                                case GraphDisplayButton:
                                        {
                                        int n,y;
                                        double x;
                                        RectangleType r;



                                        for (n = 0; n < 180; n++)
                                        {
                                                x = 4 * n *(RADDEG);
                                                y = sin(x);<===Problem..
                                                FrmGetObjectBounds(frmP, 
FrmGetObjectIndex(frmP, GraphOneGadget), &r);
                                            WinEraseRectangle(&r, 0);
                                                WinDrawPixel(n,80+y);
                                        }
                                        handled = true;
                                        break;
                                        }

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx



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

Reply via email to