Ok, first I apologize for not being able to follow the multiple hits on the searches found on this site and the msdn example I found.
I am having an issue trying to assign data to a combobox. I want to assign the data dynamically, not assign it before I compile it, specifically I want to assign via a text file. I figure if I can learn from this example from msdn:
I added my combobox name as the pointer and though it compiles fine it does not add anything? I am confused. Can anyone help explain this example?Code:// The pointer to my combo box. CComboBox* pIDC_COMBO1; // Add 20 items to the combo box. CString str; for (int i=0;i < 20;i++) { str.Format(_T("item string%d"), i); pIDC_COMBO1->AddString( str ); }