> OK, my turn for a dumb C question. If I have a string variable, e.g.,
> char myString[6], and then I have an API call which requires a const char
> *x, how do I pass the variable myString in the function call to make it
> be passed by value rather than by reference? I just can't seem to get
> this right. So far the only thing I can get to work is to put the
> constant "abcd" directly into the function call, but of course that's of
> no interest if "abcd" needs to be changed from case to case.
hehe.. this dont work?
APICall( (const char *) myPointer );
???
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/