-
大小: 1.56MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2022-06-07
- 語言: 其他
- 標(biāo)簽:
資源簡介
使用SerialPort類編寫的串口調(diào)試助手(源代碼),對編寫串口通信程序有比較好的參考價值

代碼片段和文件信息
//Download?by?http://www.NewXing.com
//?COMTOOL.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“COMTOOL.h“
#include?“COMTOOLDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCOMTOOLApp
BEGIN_MESSAGE_MAP(CCOMTOOLApp?CWinApp)
//{{AFX_MSG_MAP(CCOMTOOLApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCOMTOOLApp?construction
CCOMTOOLApp::CCOMTOOLApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCOMTOOLApp?object
CCOMTOOLApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCOMTOOLApp?initialization
BOOL?CCOMTOOLApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CCOMTOOLDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????.......????277568??2005-05-26?13:48??chuankou\COMTOOL.APS
????.......??????2654??2005-05-26?13:48??chuankou\COMTOOL.clw
?????文件???????2115??2011-04-12?11:54??chuankou\COMTOOL.cpp
????.......??????4378??2005-05-25?19:19??chuankou\COMTOOL.dsp
????.......???????539??2005-05-25?09:16??chuankou\COMTOOL.dsw
?????文件???????1373??2011-04-12?11:54??chuankou\COMTOOL.h
?????文件??????99328??2012-04-28?14:13??chuankou\COMTOOL.ncb
?????文件??????53760??2012-04-28?14:13??chuankou\COMTOOL.opt
?????文件???????1872??2012-04-24?15:23??chuankou\COMTOOL.plg
????.......??????8317??2005-05-26?13:48??chuankou\COMTOOL.rc
?????文件??????14111??2011-04-12?11:54??chuankou\COMTOOLDlg.cpp
?????文件???????2609??2011-04-12?11:54??chuankou\COMTOOLDlg.h
????.......??????3597??2005-05-25?09:16??chuankou\ReadMe.txt
?????文件?????274432??2012-04-24?15:23??chuankou\Release\COMTOOL.exe
?????文件??????12892??2012-04-24?15:23??chuankou\Release\COMTOOL.obj
?????文件????5699028??2012-04-24?15:23??chuankou\Release\COMTOOL.pch
?????文件?????244020??2012-04-24?15:23??chuankou\Release\COMTOOL.res
?????文件??????45756??2012-04-24?15:23??chuankou\Release\COMTOOLDlg.obj
?????文件??????11724??2012-04-24?15:23??chuankou\Release\SerialPort.obj
?????文件????????804??2012-04-24?15:23??chuankou\Release\StdAfx.obj
?????文件??????50176??2012-04-28?14:12??chuankou\Release\vc60.idb
????.......????240118??2005-05-25?19:19??chuankou\res\bitmap1.bmp
????.......??????1078??2005-05-25?19:19??chuankou\res\COMTOOL.ico
????.......???????399??2005-05-25?09:16??chuankou\res\COMTOOL.rc2
????..A.SH.??????6144??2005-07-15?17:29??chuankou\res\Thumbs.db
?????文件???????1734??2011-04-12?11:54??chuankou\Resource.h
?????文件??????18067??2011-04-12?11:54??chuankou\SerialPort.cpp
?????文件???????3131??2011-04-12?11:54??chuankou\SerialPort.h
?????文件????????247??2011-04-12?11:54??chuankou\StdAfx.cpp
?????文件???????1092??2011-04-12?11:54??chuankou\StdAfx.h
............此處省略6個文件信息
- 上一篇:如何分析AWR報告
- 下一篇:MPC8548用戶手冊中文版
評論
共有 條評論