I ran into an interesting 'bug' today. It isn't really a bug, but it's caused by an easy-to-make mistake, and the results are pretty disasterous. Here's a sample of some code using CListBox::GetText: MyDlg::MyFunc(int iIndex) { CString sListBoxItemText ; m_CListBoxFoo.GetText( iIndex, sListBoxItemText ) ; … } The GetText function is…