| | |
| | | CMTerm1Doc* pDoc = (CMTerm1Doc *)(pV->GetDocument());
|
| | |
|
| | | int nCount;
|
| | | int res = pDoc->MyKLink1.GetEventLogCount(1, &nCount);
|
| | | int res = theApp.MyKLink1.GetEventLogCount(1, &nCount);
|
| | | CString s1;
|
| | |
|
| | | s1.Format(_T("Get EventLogCount Result r=%d N=%d "), res, nCount);
|
| | | SysLog(s1);
|
| | | if (res == pDoc->MyKLink1.KL_OK)
|
| | | if (res == theApp.MyKLink1.KL_OK)
|
| | | {
|
| | | s1.Format(_T("%d"), nCount);
|
| | | GetDlgItem(IDC_EDIT_EVENT_COUNT)->SetWindowText(s1);
|
| | |
| | | CMTerm1Doc* pDoc = (CMTerm1Doc *)(pV->GetDocument());
|
| | |
|
| | | int nCount;
|
| | | int res = pDoc->MyKLink1.GetEventLogCount(1, &nCount);
|
| | | int res = theApp.MyKLink1.GetEventLogCount(1, &nCount);
|
| | | CString s1;
|
| | |
|
| | | s1.Format(_T("Get EventLogCount Result r=%d N=%d "), res, nCount);
|
| | | SysLog(s1);
|
| | |
|
| | | if (res == pDoc->MyKLink1.KL_OK)
|
| | | if (res == theApp.MyKLink1.KL_OK)
|
| | | {
|
| | | s1.Format(_T("%d"), nCount);
|
| | | GetDlgItem(IDC_EDIT_EVENT_COUNT)->SetWindowText(s1);
|
| | |
| | | int res;
|
| | | CString s1;
|
| | |
|
| | | res = pDoc->MyKLink1.GetEventLog(1, nIndex, nReadCount, &KEventLogs[nIndex]);
|
| | | res = theApp.MyKLink1.GetEventLog(1, nIndex, nReadCount, &KEventLogs[nIndex]);
|
| | | s1.Format(_T(" Get EventLog %d Result r=%d "), nIndex, res);
|
| | | s1.AppendFormat(_T("%d %d %d %d %d %d"), KEventLogs[nIndex].Sign1, KEventLogs[nIndex].Seq1, KEventLogs[nIndex].nTime, KEventLogs[nIndex].nType, KEventLogs[nIndex].nParam1, KEventLogs[nIndex].nParam2);
|
| | | // SysLog(s1);
|