KLink1/CDialogCommSet1.cpp
@@ -101,11 +101,11 @@ for (int i = 1; i <= 16; i++) { s1.Format(_T("COM%d"), i); if (get_com_name(s1, s2)) { s1 = s2; } if (get_com_name(s1 + _T(")"), s2)) { s1 = s2; } m_combo_comport.AddString(s1); } // sComSelStr = _T("COM3"); m_combo_comport.SelectString(0, sComSelStr); // m_combo_comport.SelectString(0, sComSelStr); // m_combo_comport.SetCurSel(2); if (m_nComNum >0) m_combo_comport.SetCurSel(m_nComNum - 1);