資源簡介
有朋友下了我寫的文件校驗器,說沒有源碼,現在就放出源碼,希望對大家有用。這個校驗器沒有處理對于程序代碼超過64K的單片機程序。

代碼片段和文件信息
//?CheckSum.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CheckSum.h“
#include?“CheckSumDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCheckSumApp
BEGIN_MESSAGE_MAP(CCheckSumApp?CWinApp)
//{{AFX_MSG_MAP(CCheckSumApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCheckSumApp?construction
CCheckSumApp::CCheckSumApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCheckSumApp?object
CCheckSumApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCheckSumApp?initialization
BOOL?CCheckSumApp::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
CCheckSumDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?(int)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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????7024??2008-06-11?09:14??Debug\BuildLog.htm
?????文件????2097215??2009-02-27?14:36??Debug\CheckSum.exe
?????文件????????146??2007-11-07?14:52??Debug\CheckSum.exe.em
?????文件????????212??2007-11-07?14:52??Debug\CheckSum.exe.em
?????文件????????145??2008-06-11?09:14??Debug\CheckSum.exe.intermediate.manifest
?????文件??????14761??2009-02-27?14:36??Debug\CheckSum.obj
?????文件????3507200??2009-02-27?14:36??Debug\CheckSum.pdb
?????文件??????28424??2009-02-27?14:36??Debug\CheckSum.res
?????文件??????55134??2009-02-27?14:36??Debug\CheckSumDlg.obj
?????文件?????????67??2007-12-13?08:12??Debug\mt.dep
?????文件?????105522??2009-02-27?14:36??Debug\StdAfx.obj
?????文件?????364544??2009-02-27?14:36??Debug\vc60.pdb
?????文件???????7336??2007-12-13?08:23??Release\BuildLog.htm
?????文件?????217088??2009-02-27?14:36??Release\CheckSum.exe
?????文件????????145??2007-12-13?08:23??Release\CheckSum.exe.intermediate.manifest
?????文件???????9840??2009-02-27?14:36??Release\CheckSum.obj
?????文件??????93911??2008-07-10?11:42??Release\CheckSum.rar
?????文件??????28424??2009-02-27?14:36??Release\CheckSum.res
?????文件??????32343??2009-02-27?14:36??Release\CheckSumDlg.obj
?????文件?????????67??2007-12-13?08:23??Release\mt.dep
?????文件????????720??2009-02-27?14:36??Release\StdAfx.obj
?????文件????????766??2007-09-14?15:21??res\A.ico
?????文件????????766??2007-09-14?15:22??res\B.ico
?????文件???????2102??2007-09-13?10:43??res\bitmap1.bmp
?????文件???????2794??2007-09-13?10:43??res\bitmap2.bmp
?????文件???????2926??2007-09-13?16:54??res\bitmap3.bmp
?????文件????????766??2007-09-14?15:27??res\C.ico
?????文件???????1078??2007-09-13?10:41??res\CheckSum.ico
?????文件????????400??2007-09-13?10:41??res\CheckSum.rc2
?????文件??????21238??2007-09-13?16:54??res\chksum.bmp
............此處省略48個文件信息
- 上一篇:俄羅斯方塊(VFP 開發的)
- 下一篇:信息系統項目管理師第三版Word版本
評論
共有 條評論