fieldP is not declared as a char * in Elizabeth's code.

Char * recordP, fieldP;

Does not mean that both recordP and fieldP are Char pointers.

To achieve this:

CharPtr recordP, fieldP;

-or-

Char *recordP, *fieldP;

-Ken

> ----------
> From:         Ford, Peter[SMTP:[EMAIL PROTECTED]]
> Reply To:     Palm Developer Forum
> Sent:         Wednesday, February 16, 2000 2:37 PM
> To:   Palm Developer Forum
> Subject:      RE: SDK 3.5 Type Conversion Error
> 
> MemHandleLock() returns a VoidPtr (i.e void *). fieldP is declared as a
> char
> *. The assignment needs a cast:
> 
> fieldP = (char *)MemHandleLock(fieldH);
> 
> BTW should fieldP be declared as a FieldPtr?
> 
> Pete
> 
> 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to