資源簡介
實(shí)現(xiàn)獲取串口信息,寫入數(shù)據(jù)庫
代碼片段和文件信息
//?CommCommunicateThread.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“CommunicateComm.h“
#include?“CommCommunicateThread.h“
int?GetErrorString(PBYTE?pBufferOut?int?*nBufferLen?DWORD?dwError);
#include?“CommunicateCommDlg.h“
#include?“MyPtrList.h“
extern?CCommunicateCommDlg?*g_pMainWnd;
extern?CMyPtrList g_InPutList;
extern?CMyPtrList g_OutPutList;
//?CommCommunicateThread
IMPLEMENT_DYNCREATE(CommCommunicateThread?CWinThread)
CommCommunicateThread::CommCommunicateThread()
{
memset(&osRead?0?sizeof(osRead));
memset(&osWrite?0?sizeof(osWrite));
memset(&ShareEvent?0?sizeof(ShareEvent));
COMFile?=?NULL;
m_nBuffLen?=?0;?
memset(m_InPutBuff?0?MAX_PATH);
osRead.hEvent=?CreateEvent(?NULL?FALSE?FALSE?NULL?)?;
if?(osRead.hEvent?==?NULL)?{
AfxMessageBox(_T(“建立事件失敗!“))?;
}
osWrite.hEvent=?CreateEvent(?NULL?FALSE?FALSE?NULL?)?;
if?(osWrite.hEvent?==?NULL)?{
AfxMessageBox(_T(“建立事件失敗!“))?;
}
ShareEvent.hEv
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????912??2011-09-07?15:14??CommunicateComm.sln
?????文件???????8175??2012-06-25?10:45??CommunicateComm\CommCommunicateThread.cpp
?????文件????????813??2012-06-22?16:18??CommunicateComm\CommCommunicateThread.h
?????文件?????106488??2012-06-21?18:53??CommunicateComm\CommunicateComm.aps
?????文件???????3569??2011-10-10?23:54??CommunicateComm\CommunicateComm.cpp
?????文件????????559??2011-09-07?15:13??CommunicateComm\CommunicateComm.h
?????文件??????12950??2012-06-21?18:53??CommunicateComm\CommunicateComm.rc
?????文件???????6185??2012-06-21?14:18??CommunicateComm\CommunicateComm.vcxproj
?????文件???????2486??2012-06-21?14:18??CommunicateComm\CommunicateComm.vcxproj.filters
?????文件????????143??2011-09-07?15:13??CommunicateComm\CommunicateComm.vcxproj.user
?????文件??????22270??2012-06-22?17:36??CommunicateComm\CommunicateCommDlg.cpp
?????文件???????2286??2012-06-22?17:36??CommunicateComm\CommunicateCommDlg.h
?????文件???????4405??2011-09-07?15:13??CommunicateComm\ReadMe.txt
?????文件???????3216??2012-06-21?14:27??CommunicateComm\resource.h
?????文件????????217??2011-09-07?15:13??CommunicateComm\stdafx.cpp
?????文件???????1762??2012-06-21?17:49??CommunicateComm\stdafx.h
?????文件????????314??2011-09-07?15:13??CommunicateComm\targetver.h
?????文件??????67777??2009-08-31?02:31??CommunicateComm\res\CommunicateComm.ico
?????文件????????814??2011-09-07?15:13??CommunicateComm\res\CommunicateComm.rc2
?????文件???????1726??2011-05-16?13:39??CommunicateComm\MyPtrList.cpp
?????文件???????1501??2011-05-13?10:32??CommunicateComm\MyPtrList.h
?????目錄??????????0??2011-09-07?15:13??CommunicateComm\res
?????目錄??????????0??2011-09-15?23:36??CommunicateComm
-----------?---------??----------?-----??----
???????????????248568????????????????????23
- 上一篇:心電圖小波,小波的檢測方法
- 下一篇:nginx 日志
評論
共有 條評論