資源簡介
基于MFC窗口界面,實現了IP數據包的捕獲和解析

代碼片段和文件信息
//?myIpCapture.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“myIpCapture.h“
#include?“myIpCaptureDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CmyIpCaptureApp
BEGIN_MESSAGE_MAP(CmyIpCaptureApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CmyIpCaptureApp?construction
CmyIpCaptureApp::CmyIpCaptureApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?CmyIpCaptureApp?object
CmyIpCaptureApp?theApp;
//?CmyIpCaptureApp?initialization
BOOL?CmyIpCaptureApp::InitInstance()
{
//?InitCommonControlsEx()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?Set?this?to?include?all?the?common?control?classes?you?want?to?use
//?in?your?application.
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
//?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
//?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“));
CmyIpCaptureDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3911??2012-10-23?14:36??myIpCapture\ReadMe.txt
?????文件??????43424??2012-11-17?16:49??myIpCapture\myIpCapture.aps
?????文件???????2116??2012-10-23?14:36??myIpCapture\myIpCapture.cpp
?????文件????????534??2012-10-23?14:36??myIpCapture\myIpCapture.h
?????文件???????6015??2012-10-29?14:54??myIpCapture\myIpCapture.rc
?????文件????????887??2012-10-23?14:36??myIpCapture\myIpCapture.sln
????..A..H.?????17408??2012-11-18?14:49??myIpCapture\myIpCapture.suo
?????文件???????5540??2012-10-23?15:06??myIpCapture\myIpCapture.vcproj
?????文件???????1405??2012-10-31?09:08??myIpCapture\myIpCapture.vcproj.DELL.dell.user
?????文件???????8670??2012-10-31?09:02??myIpCapture\myIpCaptureDlg.cpp
?????文件???????1953??2012-10-31?09:02??myIpCapture\myIpCaptureDlg.h
?????文件????????821??2012-10-25?14:52??myIpCapture\resource.h
?????文件????????211??2012-10-23?14:36??myIpCapture\stdafx.cpp
?????文件???????1901??2012-10-23?14:36??myIpCapture\stdafx.h
?????文件???????1432??2012-10-23?14:36??myIpCapture\targetver.h
?????文件???????1427??2012-11-18?14:49??myIpCapture\myIpCapture.vcproj.QT-20120803MXAM.Administrator.user
?????文件??????21630??2003-07-23?17:52??myIpCapture\res\myIpCapture.ico
?????文件????????402??2012-10-23?14:36??myIpCapture\res\myIpCapture.rc2
?????文件???????7298??2012-10-31?09:02??myIpCapture\Debug\BuildLog.htm
?????文件?????????69??2012-10-31?09:02??myIpCapture\Debug\mt.dep
?????文件?????103936??2012-10-31?09:02??myIpCapture\Debug\myIpCapture.exe
?????文件????????920??2012-10-23?15:36??myIpCapture\Debug\myIpCapture.exe.em
?????文件????????984??2012-10-23?15:36??myIpCapture\Debug\myIpCapture.exe.em
?????文件????????861??2012-10-31?09:02??myIpCapture\Debug\myIpCapture.exe.intermediate.manifest
?????文件????1252180??2012-10-31?09:02??myIpCapture\Debug\myIpCapture.ilk
?????文件??????22201??2012-10-31?09:02??myIpCapture\Debug\myIpCapture.obj
?????文件???25296896??2012-10-23?15:06??myIpCapture\Debug\myIpCapture.pch
?????文件????3664896??2012-10-31?09:02??myIpCapture\Debug\myIpCapture.pdb
?????文件??????23676??2012-10-29?14:54??myIpCapture\Debug\myIpCapture.res
?????文件??????89086??2012-10-31?09:02??myIpCapture\Debug\myIpCaptureDlg.obj
............此處省略10個文件信息
- 上一篇:C++繼承、派生 代碼
- 下一篇:ruminations on C++
評論
共有 條評論