-
大小: 5.09MB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2023-08-14
- 語(yǔ)言: C/C++
- 標(biāo)簽:
資源簡(jiǎn)介
這是我自己用MFC編寫(xiě)的一個(gè)串口調(diào)試助手,包含了基本功能,適合新手入門(mén)

代碼片段和文件信息
//?MMCOM.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“MMCOM.h“
#include?“MMCOMDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMMCOMApp
BEGIN_MESSAGE_MAP(CMMCOMApp?CWinApp)
//{{AFX_MSG_MAP(CMMCOMApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMMCOMApp?construction
CMMCOMApp::CMMCOMApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMMCOMApp?object
CMMCOMApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMMCOMApp?initialization
BOOL?CMMCOMApp::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
CMMCOMDlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-01-05?09:06??串口調(diào)試助手v1.2\
?????目錄???????????0??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\
?????文件?????5129216??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\MMCOM.bsc
?????文件??????122967??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\MMCOM.exe
?????文件??????282660??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\MMCOM.ilk
?????文件???????17463??2014-10-31?13:45??串口調(diào)試助手v1.2\Debug\MMCOM.obj
?????文件?????6878688??2014-10-30?21:51??串口調(diào)試助手v1.2\Debug\MMCOM.pch
?????文件??????443392??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\MMCOM.pdb
?????文件????????5312??2014-10-31?13:45??串口調(diào)試助手v1.2\Debug\MMCOM.res
?????文件???????????0??2014-10-31?13:45??串口調(diào)試助手v1.2\Debug\MMCOM.sbr
?????文件???????64970??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\MMCOMDlg.obj
?????文件???????????0??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\MMCOMDlg.sbr
?????文件???????47944??2014-10-30?21:51??串口調(diào)試助手v1.2\Debug\mscomm.obj
?????文件???????????0??2014-10-30?21:51??串口調(diào)試助手v1.2\Debug\mscomm.sbr
?????文件??????105957??2014-10-30?21:51??串口調(diào)試助手v1.2\Debug\StdAfx.obj
?????文件?????1375034??2014-10-30?21:51??串口調(diào)試助手v1.2\Debug\StdAfx.sbr
?????文件??????222208??2015-01-04?12:21??串口調(diào)試助手v1.2\Debug\vc60.idb
?????文件??????372736??2014-11-08?20:42??串口調(diào)試助手v1.2\Debug\vc60.pdb
?????文件???????24776??2014-11-01?10:57??串口調(diào)試助手v1.2\MMCOM.APS
?????文件????????1919??2015-01-05?09:06??串口調(diào)試助手v1.2\MMCOM.clw
?????文件????????2049??2014-10-29?09:41??串口調(diào)試助手v1.2\MMCOM.cpp
?????文件????????4700??2014-10-30?19:13??串口調(diào)試助手v1.2\MMCOM.dsp
?????文件?????????562??2014-10-29?12:46??串口調(diào)試助手v1.2\MMCOM.dsw
?????文件????????1313??2014-10-29?09:41??串口調(diào)試助手v1.2\MMCOM.h
?????文件??????132096??2015-01-05?09:06??串口調(diào)試助手v1.2\MMCOM.ncb
?????文件???????58880??2015-01-05?09:06??串口調(diào)試助手v1.2\MMCOM.opt
?????文件?????????244??2015-01-04?12:21??串口調(diào)試助手v1.2\MMCOM.plg
?????文件????????9115??2014-10-31?13:45??串口調(diào)試助手v1.2\MMCOM.rc
?????文件???????13521??2014-11-08?20:42??串口調(diào)試助手v1.2\MMCOMDlg.cpp
?????文件????????2240??2014-10-31?13:38??串口調(diào)試助手v1.2\MMCOMDlg.h
?????文件????????8569??2014-10-29?10:04??串口調(diào)試助手v1.2\mscomm.cpp
............此處省略10個(gè)文件信息
- 上一篇:飛行射擊游戲源碼c++
- 下一篇:VMTK Tutorials
評(píng)論
共有 條評(píng)論