Try this:
const int ind = m_listCtrl.InsertItem(i, dlg.m_textA);
CString t = m_listCtrl.GetItemText(ind,0); //this always returns a null string
m_listCtrl.SetItemText(ind,0,"Test"); //always gives debug assertion failure and i comment out to get it to run
Sally




Reply With Quote