Hi,
Sorry for the late answer but I was kept out of NI site in the last time.
The assertion failure occurs first because in DlgSelectECU::OnInitDialog() you must call the base class implementation of OnInitDialog.
Just modify this method as follows:
BOOL DlgSelectECU::OnInitDialog()
{
//This will create the dialog and control windows objects
CDialog::OnInitDialog();
POSITION pos = m_StringList.GetHeadPosition();
while (pos)
{
m_ECUList.AddString(m_StringList.GetNext(pos));
}
return true;
}
This is because the AddString method of CComboBox is calling SendMessage to the window attached to the Combo control, and the Combo control window is created in the OnInitDialog of the CDialog.
Hope this helps
Silvius
Silvius Iancu