Sure.  Basically, you use SysFormPointerArrayToStrings unnecessarily and 
incorrectly.  In your definition of the menu choices, they are defined as an 
array of string pointers, not a continuous series of null-terminated 
strings.

Your code would work if you did define them in this manner.  i.e.:
Char c[100] = 'one\0two\0three\0four\0five\0';
(instead of      Char *c[5] = {"one","two","three","four","five"};)

When you have to use the cast "(Char *) c" in your code this should set off 
a warning sign to double check your assumptions.  You're changing a (Char 
**) into a (Char*) which is rarely correct.

--
Tim Kostka 



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to