資源簡(jiǎn)介
一份小項(xiàng)目的源代碼,它超越了串口助手,給人一種耳目一新的感覺。亮點(diǎn)如下:
1.它解決了,串口關(guān)閉時(shí)出現(xiàn)死鎖不響應(yīng)問題,可以直接用到開發(fā)的項(xiàng)目上。
2.并且是擴(kuò)展了的串口助手,具有通信協(xié)議編輯和使用功能,
3.軟件升級(jí)檢測(cè),值得做軟件升級(jí)例子使用。
4.最重要的是源代碼很不錯(cuò),很值得大家去研究。
分享給做工控上位機(jī)的朋友們,有問題,可以留言,以便做進(jìn)一步修正。

代碼片段和文件信息
//?CommAdvancedDlg.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“MyComm.h“
#include?“CommAdvancedDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCommAdvancedDlg?dialog
CCommAdvancedDlg::CCommAdvancedDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CCommAdvancedDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CCommAdvancedDlg)
m_dwoReadInter?=?0;
m_dwoReadTotalMult?=?0;
m_dwoReadTotalConst?=?0;
m_dwoWriteTotalMult?=?0;
m_dwoWriteTotalConst?=?0;
//}}AFX_DATA_INIT
}
void?CCommAdvancedDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCommAdvancedDlg)
DDX_Text(pDX?IDC_EDREADINTER?m_dwoReadInter);
DDX_Text(pDX?IDC_EDREADTOTALMUL?m_dwoReadTotalMult);
DDX_Text(pDX?IDC_EDREATOTALCONST?m_dwoReadTotalConst);
DDX_Text(pDX?IDC_EDWRITETOTALCONST?m_dwoWriteTotalMult);
DDX_Text(pDX?IDC_EDWRITETOTALMUL?m_dwoWriteTotalConst);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCommAdvancedDlg?CDialog)
//{{AFX_MSG_MAP(CCommAdvancedDlg)
ON_BN_CLICKED(IDC_BTDEFAULT?OnBtdefault)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCommAdvancedDlg?message?handlers
void?CCommAdvancedDlg::OnBtdefault()?
{
//?TODO:?Add?your?control?notification?handler?code?here
m_dwoReadInter?=?1;
m_dwoReadTotalMult?=?0;
m_dwoReadTotalConst?=?0;
m_dwoWriteTotalMult?=?0;
m_dwoWriteTotalConst?=0;
UpdateData(FALSE);
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1625??2011-11-05?00:55??serialProject\CommAdvancedDlg.cpp
?????文件???????1369??2011-11-05?00:55??serialProject\CommAdvancedDlg.h
?????文件???????6803??2011-11-05?00:55??serialProject\CommandDlg.cpp
?????文件???????2985??2011-11-05?00:55??serialProject\CommandDlg.h
?????文件?????323632??2011-11-06?21:10??serialProject\Debug\LSDComm.exe
?????文件????????505??2011-11-06?21:14??serialProject\Debug\version
?????文件???????4230??2011-11-05?00:55??serialProject\debug.h
?????文件???????2292??2011-11-05?00:55??serialProject\Doc\概要設(shè)計(jì).txt
?????文件???????8531??2011-11-05?00:55??serialProject\EditLog.cpp
?????文件???????2783??2011-11-05?00:55??serialProject\EditLog.h
?????文件???????3952??2011-11-05?00:55??serialProject\editlog_stream.h
?????文件??????86634??2011-11-05?00:55??serialProject\ETSLayout.cpp
?????文件??????27926??2011-11-05?00:55??serialProject\ETSLayout.h
?????文件??????22566??2011-11-05?00:55??serialProject\MainFrm.cpp
?????文件???????2037??2011-11-05?00:55??serialProject\MainFrm.h
?????文件??????44868??2011-11-05?01:15??serialProject\MyComm.aps
?????文件??????13038??2011-11-06?21:10??serialProject\MyComm.clw
?????文件???????7039??2011-11-05?00:55??serialProject\MyComm.cpp
?????文件???????6606??2011-11-05?00:55??serialProject\MyComm.dsp
?????文件????????537??2011-11-05?00:55??serialProject\MyComm.dsw
?????文件???????1718??2011-11-05?00:55??serialProject\MyComm.h
?????文件?????123904??2011-11-06?21:11??serialProject\MyComm.ncb
?????文件??????58880??2011-11-06?21:11??serialProject\MyComm.opt
?????文件???????2651??2011-11-06?21:10??serialProject\MyComm.plg
?????文件??????30875??2011-11-05?00:55??serialProject\MyComm.rc
?????文件????????681??2011-11-05?00:55??serialProject\MyComm.reg
?????文件???????8208??2011-11-05?00:55??serialProject\MyCommDoc.cpp
?????文件???????3131??2011-11-05?00:55??serialProject\MyCommDoc.h
?????文件??????30990??2011-11-05?00:55??serialProject\MyCommView.cpp
?????文件???????3903??2011-11-05?00:55??serialProject\MyCommView.h
............此處省略35個(gè)文件信息
- 上一篇:isar成像程序——適合初學(xué)者
- 下一篇:JPEG-LS壓縮與解壓源程序
評(píng)論
共有 條評(píng)論