i am trying to add the following to a pop up list.instead of displaying the array 
contents, garbage is displayed in the list box, something like &X,&v and rest are 
blank spaces. 

Char *c[5] = {"one","two","three","four","five"};
Int16 stringCount = 5;

if( LstNewList((void**)&frmP,1,50,30,50,50,stdFont,3,2) == 0)
{
list = (ListType*)GetObjectPtr((UInt16)1);
memList = SysFormPointerArrayToStrings((Char *)c,stringCount);
memP = (MemPtr*)MemHandleLock(memList);
LstSetListChoices(list,(Char**)memP,5);
LstPopupList(list);     
//err = MemPtrUnlock(memP);
error = MemHandleUnlock(memList);                               
MemHandleFree(memList);
}

what is wrong with the code,

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

Reply via email to