--- [EMAIL PROTECTED] wrote:
>             Hey!  I am trying to make a calculator and I am getting a fatal 
> error.  
> 
>    My Calculator will add any numbers from 0 to 5.  For example,  If I say 5 
> + 4 it will say 9.  
> 
>                  However,  If I say  5+ 6,  I get a fatal exception.  I am 
> sure it is a pointer problem.  Please show me what I did wrong!   Thanks!
> 
> 
>  case ctlSelectEvent:
>  {
>         
>  case MainPlusButton:
>          Int32 addn;
>          Int32 addnn;
>          Int32 newnum;
>          char *NumSum;
>          char *NumSumm;
>          char Answer;
>          fld=(FieldPtr) GetObjectPtr(MainNumField);
>          fldd=(FieldPtr) GetObjectPtr(MainNummField);
>          Answerfld=(FieldPtr) GetObjectPtr(MainAnswerField);
>          NumSum=FldGetTextPtr (fld);
>          NumSumm=FldGetTextPtr (fldd);
>          addn = StrAToI (NumSum);
>          addnn = StrAToI (NumSumm);
>          newnum=addn+addnn;

Here:
>          StrIToA (&Answer, newnum);

Try to learn how to use a debugger with pose.

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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