Hi,

Did you set a call back function to read and display the database?
( LstSetDraw???() ). If so, (most probably) you would not have
used LstSetSelections() and so you so can't use LstGetSelectionText().

You should call LstGetSelection() and then read the data yourself
from the database.

Qun Wang wrote:
> 
> Hi,
> Does anybody have problem with the LstGetSelectionText() function call?
> when I called this function to get the selectiontext from a List which
> was drawed by using the data retrieved from the database; my application
> crashed on that call, but when I called this function to get the
> selectiontext from a list which were drawed by using the .rsrc resource(
> when you add  a list object, you add the item and item text for the
> list), it worked.
> could anybody tell why this happen?
> 
> Thanks!
> 
> QunWang

Reply via email to