資源簡介
這是利用ACtiveX的串口控件Mscomm編程的一個(gè)項(xiàng)目,里面涉及MFC界面設(shè)計(jì),串口的基本通信,串口接收處理繪圖等操作

代碼片段和文件信息
//?ImpactCurrent.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ImpactCurrent.h“
#include?“ImpactCurrentDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CImpactCurrentApp
BEGIN_MESSAGE_MAP(CImpactCurrentApp?CWinApp)
//{{AFX_MSG_MAP(CImpactCurrentApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CImpactCurrentApp?construction
CImpactCurrentApp::CImpactCurrentApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CImpactCurrentApp?object
CImpactCurrentApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CImpactCurrentApp?initialization
BOOL?CImpactCurrentApp::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
CImpactCurrentDlg?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í)間???名稱
-----------?---------??----------?-----??----
?????文件?????127056??2015-08-24?15:55??PassCurrent\Debug\ImpactCurrent.exe
?????文件?????314860??2015-08-24?15:55??PassCurrent\Debug\ImpactCurrent.ilk
?????文件??????18464??2015-08-24?15:55??PassCurrent\Debug\ImpactCurrent.obj
?????文件????5492816??2015-08-06?14:11??PassCurrent\Debug\ImpactCurrent.pch
?????文件?????467968??2015-08-24?15:55??PassCurrent\Debug\ImpactCurrent.pdb
?????文件???????5324??2015-08-24?15:52??PassCurrent\Debug\ImpactCurrent.res
?????文件??????80781??2015-08-24?15:55??PassCurrent\Debug\ImpactCurrentDlg.obj
?????文件??????47591??2015-08-06?14:11??PassCurrent\Debug\mscomm.obj
?????文件?????105640??2015-08-06?14:11??PassCurrent\Debug\StdAfx.obj
?????文件?????222208??2015-08-24?15:55??PassCurrent\Debug\vc60.idb
?????文件?????389120??2015-08-24?15:55??PassCurrent\Debug\vc60.pdb
?????文件??????63564??2017-02-21?13:45??PassCurrent\ImpactCurrent.aps
?????文件???????4649??2017-02-21?13:48??PassCurrent\ImpactCurrent.clw
?????文件???????2161??2015-08-06?10:26??PassCurrent\ImpactCurrent.cpp
?????文件???????4907??2016-12-30?14:28??PassCurrent\ImpactCurrent.dsp
?????文件????????578??2015-08-06?11:15??PassCurrent\ImpactCurrent.dsw
?????文件???????1401??2015-08-06?10:26??PassCurrent\ImpactCurrent.h
?????文件?????107520??2017-02-21?13:48??PassCurrent\ImpactCurrent.ncb
?????文件?????183808??2017-02-21?13:48??PassCurrent\ImpactCurrent.opt
?????文件???????1009??2017-02-21?13:45??PassCurrent\ImpactCurrent.plg
?????文件??????11575??2017-02-21?13:45??PassCurrent\ImpactCurrent.rc
?????文件??????29388??2016-12-30?14:33??PassCurrent\ImpactCurrentDlg.cpp
?????文件???????3186??2016-12-26?11:18??PassCurrent\ImpactCurrentDlg.h
?????文件???????8569??2015-08-06?10:27??PassCurrent\mscomm.cpp
?????文件???????3221??2015-08-06?10:27??PassCurrent\mscomm.h
?????文件???????3705??2015-08-06?10:26??PassCurrent\ReadMe.txt
?????文件?????262144??2017-02-21?13:45??PassCurrent\Release\ImpactCurrent.exe
?????文件??????11882??2016-12-26?11:19??PassCurrent\Release\ImpactCurrent.obj
?????文件????5578188??2016-12-26?11:19??PassCurrent\Release\ImpactCurrent.pch
?????文件??????33492??2017-02-21?13:45??PassCurrent\Release\ImpactCurrent.res
............此處省略18個(gè)文件信息
評(píng)論
共有 條評(píng)論