> When I call the function I get a Fatal Exception. Here's some of my source
> code:
>
> char ItemsText[2][10] = {"String1","String2"};
> //...
> LstSetListChoices(pList,(char**)ItemsText,2);
You've declared an array with 20 characters in it.
You need to declare an array of character pointers:
char *ItemsText[2] = {"String1", "String2"};
Then, LstSetListChoices will work.
Neil
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/