資源簡介
vc6.0編寫的變化檢測的程序,簡單易懂,適合初學(xué)者

代碼片段和文件信息
//?changedetection.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“changedetection.h“
#include?“MainFrm.h“
#include?“changedetectionDoc.h“
#include?“changedetectionView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChangedetectionApp
BEGIN_MESSAGE_MAP(CChangedetectionApp?CWinApp)
//{{AFX_MSG_MAP(CChangedetectionApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChangedetectionApp?construction
CChangedetectionApp::CChangedetectionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChangedetectionApp?object
CChangedetectionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChangedetectionApp?initialization
BOOL?CChangedetectionApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CChangedetectionDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CChangedetectionView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3147??2012-06-05?20:26??changedetection.clw
?????文件???????4371??2012-06-04?12:02??changedetection.cpp
?????文件???????4908??2012-06-04?16:33??changedetection.dsp
?????文件????????536??2012-06-04?12:02??changedetection.dsw
?????文件???????1455??2012-06-04?12:02??changedetection.h
?????文件??????66560??2012-06-06?00:26??changedetection.ncb
?????文件??????12722??2012-06-05?12:29??changedetection.rc
?????文件??????25052??2012-06-06?00:25??changedetectionDoc.cpp
?????文件???????1793??2012-06-05?18:02??changedetectionDoc.h
?????文件???????6039??2012-06-05?12:29??changedetectionView.cpp
?????文件???????2070??2012-06-05?12:22??changedetectionView.h
?????文件???????2516??2012-06-04?12:02??MainFrm.cpp
?????文件???????1581??2012-06-04?12:02??MainFrm.h
?????文件???????4527??2012-06-04?12:02??ReadMe.txt
?????文件????????972??2012-06-05?12:29??resource.h
?????文件????????217??2012-06-04?12:02??StdAfx.cpp
?????文件???????2624??2012-06-04?12:07??StdAfx.h
?????文件???????3936??2009-02-19?21:33??DIB.lib
?????文件?????106539??2009-02-19?21:33??DIB.dll
?????文件???????1659??2012-06-06?00:25??changedetection.plg
?????文件??????44932??2012-06-05?12:29??changedetection.aps
?????文件???????1799??2012-06-04?12:26??InputDlg.cpp
?????文件???????1221??2012-06-04?12:25??InputDlg.h
?????文件??????49664??2012-06-06?00:26??changedetection.opt
?????文件???????1078??2012-06-04?12:02??res\changedetection.ico
?????文件????????407??2012-06-04?12:02??res\changedetection.rc2
?????文件???????1078??2012-06-04?12:02??res\changedetectionDoc.ico
?????文件???????1078??2012-06-04?12:02??res\Toolbar.bmp
?????目錄??????????0??2012-06-04?12:02??res
-----------?---------??----------?-----??----
............此處省略2個文件信息
評論
共有 條評論