文件名称:ConsoleApplicationTest
-
所属分类:
- 标签属性:
- 上传时间:2015-12-03
-
文件大小:104.57kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
配置SharpPcap
先来看看我的环境:win7旗舰版 、VS2010旗舰版、WinPcap4.1.3、SharpPcap4.2.0。
1.安装Winpcap4.1.3(WinPcap4.1.3下载)
2.解压SharpPcap-4.2.0.bin.zip(SharpPcap4.2.0.bin.zip&&SharpPcap4.2.0.src.zip下载)解压后打开debug文件夹,可以看到里面有两个dll文件,这就是我们程序中要用到的东西。SharpPcap-4.2.0.src.zip压缩包中,包含SharpPcap的所有源代码和一些示例程序。
3.打开VS2010,新建一个C#的控制台项目。
4.然后单击“项目”下拉菜单,选择 “添加引用”,在弹出的对话框中单击 “浏览” 选项卡,然后选择第2步中SharpPcap-4.2.0.bin.zip解压后的路径,然后将debug中的SharpPcap.dll添加进去。
5.将下面的代码,粘贴到你的项目中,测试配置是否成功,如果成功则会显示你的网络适配器的信息。-Configuration SharpPcap
Let s look at my environment: win7 Ultimate, VS2010 Ultimate, WinPcap4.1.3, SharpPcap4.2.0.
1. Install Winpcap4.1.3 (WinPcap4.1.3 download)
2. Extract SharpPcap-4.2.0.bin.zip (SharpPcap4.2.0.bin.zip && SharpPcap4.2.0.src.zip download), unzip open debug folder, you can see there are two dll files, this is our program to use things. SharpPcap-4.2.0.src.zip compressed packet contains SharpPcap all source code and some sample programs.
3. Open the VS2010, create a new C# console project.
4. Then click on the Project drop-down menu, Add reference in the pop-up dialog box, click Browse tab, then the path of the second step after extracting SharpPcap-4.2.0.bin.zip and then debug the SharpPcap.dll added.
5. Place the following code and paste it into your project, the test configuration was successful, and if successful will be displayed on your network adapter.
先来看看我的环境:win7旗舰版 、VS2010旗舰版、WinPcap4.1.3、SharpPcap4.2.0。
1.安装Winpcap4.1.3(WinPcap4.1.3下载)
2.解压SharpPcap-4.2.0.bin.zip(SharpPcap4.2.0.bin.zip&&SharpPcap4.2.0.src.zip下载)解压后打开debug文件夹,可以看到里面有两个dll文件,这就是我们程序中要用到的东西。SharpPcap-4.2.0.src.zip压缩包中,包含SharpPcap的所有源代码和一些示例程序。
3.打开VS2010,新建一个C#的控制台项目。
4.然后单击“项目”下拉菜单,选择 “添加引用”,在弹出的对话框中单击 “浏览” 选项卡,然后选择第2步中SharpPcap-4.2.0.bin.zip解压后的路径,然后将debug中的SharpPcap.dll添加进去。
5.将下面的代码,粘贴到你的项目中,测试配置是否成功,如果成功则会显示你的网络适配器的信息。-Configuration SharpPcap
Let s look at my environment: win7 Ultimate, VS2010 Ultimate, WinPcap4.1.3, SharpPcap4.2.0.
1. Install Winpcap4.1.3 (WinPcap4.1.3 download)
2. Extract SharpPcap-4.2.0.bin.zip (SharpPcap4.2.0.bin.zip && SharpPcap4.2.0.src.zip download), unzip open debug folder, you can see there are two dll files, this is our program to use things. SharpPcap-4.2.0.src.zip compressed packet contains SharpPcap all source code and some sample programs.
3. Open the VS2010, create a new C# console project.
4. Then click on the Project drop-down menu, Add reference in the pop-up dialog box, click Browse tab, then the path of the second step after extracting SharpPcap-4.2.0.bin.zip and then debug the SharpPcap.dll added.
5. Place the following code and paste it into your project, the test configuration was successful, and if successful will be displayed on your network adapter.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ConsoleApplicationTest/bin/Debug/ConsoleApplicationTest.exe
ConsoleApplicationTest/bin/Debug/ConsoleApplicationTest.pdb
ConsoleApplicationTest/bin/Debug/ConsoleApplicationTest.vshost.exe
ConsoleApplicationTest/bin/Debug/ConsoleApplicationTest.vshost.exe.manifest
ConsoleApplicationTest/bin/Debug/PacketDotNet.dll
ConsoleApplicationTest/bin/Debug/SharpPcap.dll
ConsoleApplicationTest/ConsoleApplicationTest.csproj
ConsoleApplicationTest/obj/x86/Debug/ConsoleApplicationTest.csproj.FileListAbsolute.txt
ConsoleApplicationTest/obj/x86/Debug/ConsoleApplicationTest.exe
ConsoleApplicationTest/obj/x86/Debug/ConsoleApplicationTest.pdb
ConsoleApplicationTest/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
ConsoleApplicationTest/Program.cs
ConsoleApplicationTest/Properties/AssemblyInfo.cs
ConsoleApplicationTest/obj/x86/Debug/TempPE
ConsoleApplicationTest/obj/x86/Debug
ConsoleApplicationTest/bin/Debug
ConsoleApplicationTest/obj/x86
ConsoleApplicationTest/bin
ConsoleApplicationTest/obj
ConsoleApplicationTest/Properties
ConsoleApplicationTest
ConsoleApplicationTest/bin/Debug/ConsoleApplicationTest.pdb
ConsoleApplicationTest/bin/Debug/ConsoleApplicationTest.vshost.exe
ConsoleApplicationTest/bin/Debug/ConsoleApplicationTest.vshost.exe.manifest
ConsoleApplicationTest/bin/Debug/PacketDotNet.dll
ConsoleApplicationTest/bin/Debug/SharpPcap.dll
ConsoleApplicationTest/ConsoleApplicationTest.csproj
ConsoleApplicationTest/obj/x86/Debug/ConsoleApplicationTest.csproj.FileListAbsolute.txt
ConsoleApplicationTest/obj/x86/Debug/ConsoleApplicationTest.exe
ConsoleApplicationTest/obj/x86/Debug/ConsoleApplicationTest.pdb
ConsoleApplicationTest/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
ConsoleApplicationTest/Program.cs
ConsoleApplicationTest/Properties/AssemblyInfo.cs
ConsoleApplicationTest/obj/x86/Debug/TempPE
ConsoleApplicationTest/obj/x86/Debug
ConsoleApplicationTest/bin/Debug
ConsoleApplicationTest/obj/x86
ConsoleApplicationTest/bin
ConsoleApplicationTest/obj
ConsoleApplicationTest/Properties
ConsoleApplicationTest
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.