--- trunk/FlisServer/FlisServerDlg.cpp 2007/12/06 13:36:07 175 +++ trunk/FlisServer/FlisServerDlg.cpp 2007/12/06 14:12:31 176 @@ -254,8 +254,24 @@ AppendText(tekst); } Sleep(5); - if (tekst.MakeLower() == "+cpin: sim pin") + tekst.MakeLower(); + int pos = tekst.Find("+cpin: ",0); + if (pos != -1) + { + tekst = tekst.Right( tekst.GetLength() - pos -1); + } + + if (tekst == "cpin: sim pin") { + CString pin; + ConfigFile config; + try { + config.ReadSettings(); + } catch(...) { + MessageBox("Could not open config file"); + } + Sleep(50); + data.clear(); data.push_back('a'); data.push_back('t'); @@ -265,10 +281,10 @@ data.push_back('i'); data.push_back('n'); data.push_back('='); - data.push_back('2'); - data.push_back('5'); - data.push_back('9'); - data.push_back('5'); + for (int i = 0; i data) @@ -630,13 +646,7 @@ { data.push_back(smscount[i]); } - m_Textwindow.GetWindowText(oldteskst); - oldteskst.Append("\r\n"); - for (int i=0; i