Why don't you just type cast it?

MyCall((const char **)&myPointer);



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeffrey
Pahren
Sent: Wednesday, June 06, 2001 2:40 PM
To: Palm Developer Forum
Subject: Re: Forcing const char *



> Can you clarify what compiler errors are you getting?

Sure:

>> void MyCall(const unsigned char ** x);
>>
>> void my_fun()
>> {
>>      unsigned char myPointer[50];
>>
>>        ...
>>
>>      MyCall(&myPointer);
>>        ...
>>
>>      return;
>>}

Error : illegal implicit conversion from `unsigned char **` to
`const unsigned char **`

-jeffp


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

Reply via email to