m facing a problem in reading a selected value from List Box.
I have created a list box from Resource( .rss file).
I actually have put it on a Dialog.
This is the code i write on OkToExitL() method of the dialog.
----------------------------------------------------------------------------
/ Get a pointer to the control.
CCoeControl* myListBoxPtr = this->Control(EListBoxId);
// Downcast the returned CCoeControl* pointer to the correct type.
CEikTextListBox* myListBox = static_cast<CEikTextListBox*>( myListBoxPtr);
TInt selectedIndex= myListBox->CurrentItemIndex();
CTextListBoxModel* iModel= myListBox->Model();
TPtrC a=iModel->ItemText(selectedIndex);
----------------------------------------------------------------------------
But it fails the compile process and this is the error .
Error : illegal use of incomplete struct/union/class 'CTextListBoxModel'
ClockDlg.cpp line 220
Error : Compile failed
What can be the problem......





