资源简介
基于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++
相关资源
- IP流量包分析程序
- ATM源代码用c++文件读写.zip
- 14_车牌识别系统.zip
- 13_车型识别系统.zip
- Parasoft C++ test 9.2官方用户手册_eclips
-
c++实现解析xm
l - mfc通讯录.zip
- zw_VS2013MFC编程基础19个专题.zip
- 基于GEC6818的电子相册和2048小游戏.z
- 传奇源代码cpp版本.zip
- 大漠7.1933VIP所有工具+VC++新手注册安装
- acr122udrivermfcuk.zip
- 基于TCP、IP的网络编程
- PJSIP SIP协议栈C语言
- 基于SOCKET的C++ 即时通讯系统
- Numerical Recipes 3rd. C++数值算法 第三版
- Visual.C++.MFC扩展编程.zip
- vc++编写的SipPhone
- svr-c语言和matlab代码.zip
- 模糊PID硕士期刊论文及源码.zip
- 单片空间后方交会C++程序代码数据来
- visualcppbuildtools_full.zip
- nRF24L01P入门全面解析附带C语言程序
- 嵌入式web服务器boa_C语言/Python + HTML
- C++ 快速解析大容量Excel文件 使用破解
- eclipse c_c++自动补全auto activation 自动激
- C++基于UDP的控制台局域网聊天程序
- C++ 基于数据包过滤的防火墙设计与实
- 24 个C语言项目案例分析源码+使用说明
- mfc写的仿QQ的聊天软件
评论
共有 条评论