/[H9]/trunk/FlisServer/FlisServerDlg.cpp
ViewVC logotype

Diff of /trunk/FlisServer/FlisServerDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 167 by kevin, Wed Dec 5 16:03:05 2007 UTC revision 168 by kevin, Thu Dec 6 07:14:17 2007 UTC
# Line 533  void CFlisServerDlg::runthread() Line 533  void CFlisServerDlg::runthread()
533  {  {
534          while (continueThread != 0)          while (continueThread != 0)
535          {          {
536                  Reader();                  MyMainThread();
537          }          }
538  }  }
539  void CFlisServerDlg::Reader()  void CFlisServerDlg::MyMainThread()
540  {  {
541          if(Serial.getComstat().cbInQue > 0)          if(Serial.getComstat().cbInQue > 0)
542                  {                  {
# Line 544  void CFlisServerDlg::Reader() Line 544  void CFlisServerDlg::Reader()
544                          std::vector<unsigned char> answer = readFrame();                          std::vector<unsigned char> answer = readFrame();
545                          Sleep(500);                          Sleep(500);
546                          CString tekst, oldtekst;                          CString tekst, oldtekst;
                         int lol;  
547                                    
548                          for (int i=0; i<answer.size(); i++)                          for (int i=0; i<answer.size(); i++)
549                          {                          {
# Line 837  void CFlisServerDlg::AppendText(CString Line 836  void CFlisServerDlg::AppendText(CString
836          Tekst.Append("\r\n");          Tekst.Append("\r\n");
837          Tekst.Append(s);          Tekst.Append(s);
838          m_Textwindow.SetWindowText(Tekst);          m_Textwindow.SetWindowText(Tekst);
839            int g = m_Textwindow.GetScrollLimit(SB_VERT);
840            if (g > 0)
841            {
842            m_Textwindow.SetScrollPos(g,1,false);
843            }
844    
845  }  }
846  void ConfigFile::ReadSettings()  void ConfigFile::ReadSettings()
# Line 981  vector<keepalive> CFlisServerDlg::keepal Line 985  vector<keepalive> CFlisServerDlg::keepal
985                          DBConnect();                          DBConnect();
986                          AppendText("DB connection started again");                          AppendText("DB connection started again");
987                  }                  }
988                    return buffer;
989          }          }
990    
991                    
992  }  }

Legend:
Removed from v.167  
changed lines
  Added in v.168

  ViewVC Help
Powered by ViewVC 1.1.20