thank that clears things out... i have edited my code but i get another error
i have added this code on OnInitDialog()
Code:
m_ctlListBox.InsertColumn(0, _T("Column 1"), LVCFMT_CENTER, 100);
m_ctlListBox.InsertColumn(1, _T("Column 2"), LVCFMT_LEFT, 100);
m_ctlListBox.InsertColumn(2, _T("Column 3"), LVCFMT_LEFT, 100);
and on my button
Code:
CString strText;
int nItem;
UpdateData();
strText = m_txtListbox;
UpdateData(FALSE);
nItem = m_ctlListBox.InsertItem(0,strText);
m_ctlListBox.SetItemText(nItem,1,_T("Test"));
and the error
Code:
1>ListBoxTut.obj : error LNK2019: unresolved external symbol "public: __thiscall CListBoxTutDlg::CListBoxTutDlg(class CWnd *)" (??0CListBoxTutDlg@@QAE@PAVCWnd@@@Z) referenced in function "public: virtual int __thiscall CListBoxTutApp::InitInstance(void)" (?InitInstance@CListBoxTutApp@@UAEHXZ)
1> fatal error LNK1120: 1 unresolved externals
Bookmarks