| | |
| | | res = MyKLProtocol1.GetEventLog(1, i, nReadCount, &KEventLogs[i]);
|
| | | s1.Format(_T(" Get EventLog %d Result r=%d "),i, res);
|
| | | s1.AppendFormat(_T("%d %d %d %d %d %d"), KEventLogs[i].Sign1, KEventLogs[i].Seq1, KEventLogs[i].nTime, KEventLogs[i].nType, KEventLogs[i].nParam1, KEventLogs[i].nParam2);
|
| | | SysLog(s1);
|
| | | // SysLog(s1);
|
| | | s1.Format(_T("%d"), i);
|
| | | m_list_eventlog.InsertItem(i, s1);
|
| | | s1.Format(_T("%d"), KEventLogs[i].Seq1);
|
| | | m_list_eventlog.SetItemText(i, 1, s1);
|
| | |
|
| | | s1.Format(_T("%d"), KEventLogs[i].nTime);
|
| | | CTime ctime1 = KEventLogs[i].nTime;
|
| | | s1 = ctime1.Format(_T("%Y-%m-%d %H:%M:%S"));
|
| | |
|
| | | m_list_eventlog.SetItemText(i, 2, s1);
|
| | | s1.Format(_T("%d"), KEventLogs[i].nType);
|
| | | m_list_eventlog.SetItemText(i, 3, s1);
|
| | |
| | | m_list_eventlog.SetItemText(i, 4, s1);
|
| | | s1.Format(_T("%d"), KEventLogs[i].nParam2);
|
| | | m_list_eventlog.SetItemText(i, 5, s1);
|
| | |
|
| | | }
|
| | |
|
| | | return 0;
|