Logan,
Agree. And what does the {lval} in the error message exactly mean?
Alex
LS> Somebody wrote:
>> AA> static FieldPtr SetField(UInt16 formID, UInt16 fieldID, MemPtr str)
>> AA> {
>> AA> StrCopy(p,str); // <------------------------
LS> A.Kazantsev wrote:
>> The error message suggests that the argument must be cast to the types
>> shown. Try StrCopy((char*)p, (char*)str).
LS> I would think it'd be better to change the type of the last argument
LS> to the function SetField() to "const Char *". That way, no cast is
LS> needed.
LS> Also, the first argument already doesn't need to be cast: the
LS> compiler is saying that it's an "{lval} char *", which should
LS> be compatible with a variable declared as CharPtr.
LS> - Logan
� ���������� �����������,
��������� �������� ��������
�.������, ���������� ���.
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/