-
大小: 5.52MB文件類(lèi)型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-22
- 語(yǔ)言: C/C++
- 標(biāo)簽: 串口調(diào)試??C語(yǔ)言??串口??上位機(jī)??
資源簡(jiǎn)介
用C語(yǔ)言寫(xiě)的串口調(diào)試精靈,包括詳細(xì)的源碼,對(duì)于想寫(xiě)上位機(jī)的很有幫助

代碼片段和文件信息
//?CommWizard.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CommWizard.h“
#include?“CommWizardDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCommWizardApp
BEGIN_MESSAGE_MAP(CCommWizardApp?CWinApp)
//{{AFX_MSG_MAP(CCommWizardApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCommWizardApp?construction
CCommWizardApp::CCommWizardApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCommWizardApp?object
CCommWizardApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCommWizardApp?initialization
BOOL?CCommWizardApp::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
CCommWizardDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();///出現(xiàn)界面
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í)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件??????25080??2009-11-09?19:17??串口編程調(diào)試精靈\CommWizard.aps
?????文件???????2899??2009-11-11?11:42??串口編程調(diào)試精靈\CommWizard.clw
?????文件???????2130??2009-06-01?11:22??串口編程調(diào)試精靈\CommWizard.cpp
?????文件???????4897??2009-11-09?11:36??串口編程調(diào)試精靈\CommWizard.dsp
?????文件????????589??2002-03-04?00:49??串口編程調(diào)試精靈\CommWizard.dsw
?????文件???????1368??2002-03-03?22:53??串口編程調(diào)試精靈\CommWizard.h
?????文件?????164864??2009-11-11?11:42??串口編程調(diào)試精靈\CommWizard.ncb
?????文件??????54784??2009-11-11?11:42??串口編程調(diào)試精靈\CommWizard.opt
?????文件????????254??2009-11-11?10:59??串口編程調(diào)試精靈\CommWizard.plg
?????文件??????10155??2002-10-16?13:19??串口編程調(diào)試精靈\CommWizard.rc
?????文件??????12289??2009-11-09?11:36??串口編程調(diào)試精靈\CommWizardDlg.cpp
?????文件???????2435??2002-10-14?20:26??串口編程調(diào)試精靈\CommWizardDlg.h
?????文件????6030336??2009-11-09?19:28??串口編程調(diào)試精靈\Debug\CommWizard.bsc
?????文件????2179182??2009-11-09?19:28??串口編程調(diào)試精靈\Debug\CommWizard.exe
?????文件????2588832??2009-11-09?19:28??串口編程調(diào)試精靈\Debug\CommWizard.ilk
?????文件??????16052??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\CommWizard.obj
?????文件????6837912??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\CommWizard.pch
?????文件????4178944??2009-11-09?19:28??串口編程調(diào)試精靈\Debug\CommWizard.pdb
?????文件??????11380??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\CommWizard.res
?????文件??????????0??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\CommWizard.sbr
?????文件??????57570??2009-11-09?14:53??串口編程調(diào)試精靈\Debug\CommWizardDlg.obj
?????文件??????????0??2009-11-09?14:53??串口編程調(diào)試精靈\Debug\CommWizardDlg.sbr
?????文件??????????0??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\DLGCORE.sbr
?????文件??????73009??2009-11-09?19:28??串口編程調(diào)試精靈\Debug\HexEdit.obj
?????文件??????????0??2009-11-09?19:28??串口編程調(diào)試精靈\Debug\HexEdit.sbr
?????文件??????47584??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\mscomm.obj
?????文件??????????0??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\mscomm.sbr
?????文件??????13901??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\SettingDlg.obj
?????文件??????????0??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\SettingDlg.sbr
?????文件?????106085??2009-06-17?11:24??串口編程調(diào)試精靈\Debug\StdAfx.obj
............此處省略21個(gè)文件信息
評(píng)論
共有 條評(píng)論