文件名称:ConsoleApplicationTest
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2015-12-03
- 文件大小:
- 105kb
- 下载次数:
- 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.pdb
......................\...\.....\ConsoleApplicationTest.vshost.exe
......................\...\.....\ConsoleApplicationTest.vshost.exe.manifest
......................\...\.....\PacketDotNet.dll
......................\...\.....\SharpPcap.dll
......................\ConsoleApplicationTest.csproj
......................\obj\x86\Debug\ConsoleApplicationTest.csproj.FileListAbsolute.txt
......................\...\...\.....\ConsoleApplicationTest.exe
......................\...\...\.....\ConsoleApplicationTest.pdb
......................\...\...\.....\DesignTimeResolveAssemblyReferencesInput.cache
......................\Program.cs
......................\...perties\AssemblyInfo.cs
......................\obj\x86\Debug\TempPE
......................\...\...\Debug
......................\bin\Debug
......................\obj\x86
......................\bin
......................\obj
......................\Properties
ConsoleApplicationTest