91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 26KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-11
  • 語言: C/C++
  • 標簽: 串口通信??

資源簡介

用MFC編寫的數據包校驗與常用校驗算法(數據處理方法與串口通信用戶層協議的編制)。編寫的代碼部分都有中文注釋,對剛開始接觸MFC的學習者來說是很好的資源!

資源截圖

代碼片段和文件信息

//?CRCProgram.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“CRCProgram.h“
#include?“CRCProgramDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CCRCProgramApp

BEGIN_MESSAGE_MAP(CCRCProgramApp?CWinApp)
//{{AFX_MSG_MAP(CCRCProgramApp)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CCRCProgramApp?construction

CCRCProgramApp::CCRCProgramApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCRCProgramApp?object

CCRCProgramApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CCRCProgramApp?initialization

BOOL?CCRCProgramApp::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

CCRCProgramDlg?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;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1078??2007-06-26?13:15??res\CRCProgram.ico

?????文件????????402??2007-06-26?13:15??res\CRCProgram.rc2

?????文件??????21216??2009-01-02?16:17??CRCProgram.aps

?????文件???????1402??2009-01-02?16:17??CRCProgram.clw

?????文件???????2119??2007-06-26?13:15??CRCProgram.cpp

?????文件???????4231??2007-06-26?13:15??CRCProgram.dsp

?????文件????????545??2007-06-26?13:15??CRCProgram.dsw

?????文件???????1368??2007-06-26?13:15??CRCProgram.h

?????文件??????58368??2009-01-02?16:17??CRCProgram.ncb

?????文件??????48640??2009-01-02?16:17??CRCProgram.opt

?????文件???????1645??2009-01-02?16:17??CRCProgram.plg

?????文件???????5683??2007-06-26?13:15??CRCProgram.rc

?????文件???????6900??2007-06-26?13:15??CRCProgramDlg.cpp

?????文件???????1607??2007-06-26?13:15??CRCProgramDlg.h

?????文件???????3651??2007-06-26?13:15??ReadMe.txt

?????文件????????826??2007-06-26?13:15??resource.h

?????文件????????212??2007-06-26?13:15??StdAfx.cpp

?????文件???????1054??2007-06-26?13:15??StdAfx.h

?????目錄??????????0??2009-01-02?16:18??res

-----------?---------??----------?-----??----

???????????????161165????????????????????20


評論

共有 條評論