Or if you are using C, disable you C++ compiler option in the project
setting should help.
Jacky
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ward
Fuller
Sent: Thursday, March 29, 2001 9:06 AM
To: Palm Developer Forum
Subject: RE: "void to char illegal conversion"
My guess is you're using c++ here. Either way, try casting the return value
like so:
recText = (Char*)MemHandleLock(recHandle);
HTH,
Ward
> -----Original Message-----
> From: SCMI [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 3:29 PM
> To: Palm Developer Forum
> Subject: Fw: "void to char illegal conversion"
>
>
> Dear friends:
>
> In my applications I'm using this piece of code to retrieve
> the clipboard.
> I didn't have had any problem, but now that I'm trying to
> improve another
> application in wich I included this code, an error message
> ("void to char
> illegal conversion") appeared. What is wrong? How can I
> solve it? If not,
> how shoul I convert clipboard information to text?
>
> -----------------
> Word pasteLen;
> VoidHand recHandle;
> CharPtr recText;
>
> recHandle = ClipboardGetItem (clipboardText, &pasteLen);
> recText = MemHandleLock(recHandle); //the error appears in this line
> -----------------
>
> Thank you very much,
> Farzin
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/