> From:  [EMAIL PROTECTED]
>
> This is one of my errors I KEEP getting. Please explain it to me
> and how to solve it.
>
> Warning : function has no prototype
> Starter.cpp line 36   {
>

You probably didn't include "static" in front of the function definition.
Declaring a function static tells the compiler that the function can't be
called outside of the current module.  If you leave off "static", then you
need to have a prototype of the function defined before the body of the
function.  (For example, in a header file.)

> Error   :
> illegal implicit conversion from 'void *' to
> 'FieldType *'
> Starter.cpp line 40
> FrmGetObjectIndex(FrmGetActiveForm(), UpdateNumberField));
>

C++ will not allow you to do implicit type conversions.  You have to force
them explicitly.  For example,
        FrmGetObjectIndex((FieldType *)FrmGetActiveForm(), UpdateNumberField));


> Error  : illegal implicit conversion
> from 'void *' to
> 'char *'
> Starter.cpp line 46
> StrCopy( MemHandleLock( txtH ), String );
>

Same as the above, i.e.,
        StrCopy( (char *)MemHandleLock( txtH ), String );

Look at the docs to see what data type each function expects/returns.


> Error   : ';' expected
> Starter.cpp line 481
> SetField( UpdateNumberField,focusindexed);
>

Looks OK as is.  Maybe some previous error confused the compiler.

> [snipped more code than I care to read]

It seems like you need to read a good book on C/C++ programming.


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