>
> Does anyone have an understandable explanation for what causes the
following errors?
> The code that generated the errors were supposedly good functions that
didn't have any bugs.
> ---------------------
> Error   : illegal implicit conversion from 'void *' to 'FieldType *'

You are assigned a pointer of type void* to a pointer of type FieldType*.
You need some casting.
Example:

Suppose I have a function called foo() that returns a void* (or VoidPtr -
same thing)

FieldType* myFieldTypePtr;

myFieldTypePtr = foo();  // This will generate the error you mention
myFieldTypePtr = (FieldType*)foo();  // This will compile fine

Remember that:
FieldType* == FieldTypePtr
and
void* == VoidPtr
in the world of Palm


> --------------------
> Error   : illegal implicit conversion from 'void **' to 'char **'
> ---------------------

Same deal.

There is a compile option somewhere that defines whether or not you wish for
strict pointer assignments.  In codewarrior its under C/C++ Language in the
settings panel.  There is a checkbox labelling "Relaxed Pointer type rules".

Hope that helps.

Brian.





-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to