<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">I'm using visual studio to try to run this code (the code from the link you said) and first it says, <br>"Error&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; fatal error C1083: Cannot open include file: 'pcap.h': No such file or directory"<br>even after adding existing item and browsing to it. So, I add new item, copy the contents of pcap.h into it, and save it as pcap.h. next error,<br>"Error&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; fatal error C1083: Cannot open include file: 'pcap-stdinc.h': No such file or directory"<br>I try repeating the last step, but it never works.<br><br>At one point I had tried to run their "example" solutions, with about 13 errors about <br>"Error&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; error C3163: '_vsnprintf': attributes inconsistent with previous declaration"<br><br>Also, that
 is NOT a tutorial. They don't tell you what you need to actually execute the code, i.e. which .h files are needed to be included (other then the #include), whether it only needs the .dll or what. It's very frustrating trying to run code with all the provided information, only to discover that there's still vital information not given.<font size="3"><br><br>I'm not sure if anyone here is familiar with several programs written for use with the game Warcraft III, namely banlist and listchecker. These programs scan through the traffic to your computer and log several bits of information about players you interact with, ultimately allowing you to compile a list of players you do not wish to have interaction with again. Also, they have built in ping functionality, as well as several other helpful tools. The problem is that they each have strengths, but definate weaknesses, and who wants to run 4 programs in tandem with a game to do everything if they can just
 combine them. I've determined that their functionality stems from winpcap, and wanted to write my own version of these programs that incorporates their strengths into 1 package. I don't like c++ or c, and wanted to do it in c#. I had no idea (as it said nothing about it) that this wasn't really set up to be used with .net straight away (as there are no .sln's that just compile and work properly) and wanted to know if I needed to compile something into a .dll or if there was just an updated c# version out there.<br></font><div>&nbsp;</div>Benjamin C. Kiefer<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 22 Jul 2009 16:43:56 -0700 (PDT)<br>From: Benjamin Kiefer &lt;<a ymailto="mailto:redslasher99@yahoo.com"
 href="mailto:redslasher99@yahoo.com">redslasher99@yahoo.com</a>&gt;<br>Subject: [Winpcap-users] Out of my depth...<br>To: <a ymailto="mailto:winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>Message-ID: &lt;<a ymailto="mailto:816177.50808.qm@web51602.mail.re2.yahoo.com" href="mailto:816177.50808.qm@web51602.mail.re2.yahoo.com">816177.50808.qm@web51602.mail.re2.yahoo.com</a>&gt;<br>Content-Type: text/plain; charset="us-ascii"<br><br>Okay, I'm a college student who barely uses c++, and wanted to put all the functionality of winpcap into a .dll that I can use in, say, c#. Would anyone be able to tell me what exactly I'd need for it to work, because I'm REALLY confused by the documentation. The sample code doesn't compile properly, and it'd be really nice to just have a .sln to run that actually works. This seems very complex as is, and the documentation doesn't really help. Apparently they don't know what
 "tutorials" look like, because as far as I know, giving someone a complete .cpp and barely going into what is done on it doesn't help anyone learn.<br><br>Any help would be greatly appreciated (i.e. a REAL tutorial describing which functions are used to do what and why, and how they do it) or I'd just be happy with a .dll that I can call stuff from if that's all you can do. Thanks again.<br><br> Benjamin C. Kiefer<br><br><br><br>&nbsp; &nbsp; &nbsp; <br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br><span>URL: <a target="_blank" href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/04b3892d/attachment-0001.htm">http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/04b3892d/attachment-0001.htm</a> </span><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 22 Jul 2009 17:37:26 -0700<br>From: "Gianluca Varenni" &lt;<a ymailto="mailto:gianluca.varenni@cacetech.com"
 href="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</a>&gt;<br>Subject: Re: [Winpcap-users] Out of my depth...<br>To: &lt;<a ymailto="mailto:winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a>&gt;<br>Message-ID: &lt;11C64035AA734BA88269EC96445774DF@NELSON3&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br>&nbsp; ----- Original Message ----- <br>&nbsp; From: Benjamin Kiefer <br>&nbsp; To: <a ymailto="mailto:winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a> <br>&nbsp; Sent: Wednesday, July 22, 2009 4:43 PM<br>&nbsp; Subject: [Winpcap-users] Out of my depth...<br><br><br>&nbsp; Okay, I'm a college student who barely uses c++, and wanted to put all the functionality of winpcap into a .dll that I can use in, say, c#. Would anyone be able to tell me what exactly I'd need for it to work, because I'm REALLY confused by the
 documentation. The sample code doesn't compile properly, and it'd be really nice to just have a .sln to run <br><br>Which samples in the developer's pack do not compile? Can you be a bit more specific?<br><br><br>&nbsp; that actually works. This seems very complex as is, and the documentation doesn't really help. Apparently they don't know what "tutorials" look like, because as far as I know, giving someone a complete .cpp and barely going into what is done on it doesn't help anyone learn.<br><br>Have you looked at the tutorial here<br><br><span><a target="_blank" href="http://www.winpcap.org/docs/docs_41b5/html/group__wpcap__tut.html">http://www.winpcap.org/docs/docs_41b5/html/group__wpcap__tut.html</a></span><br>?<br><br>Also, there are a bunch of .NET wrappers for WinPcap, at least one is available on codeproject (just search for "net wrapper on google").<br><br>Have a nice day<br>GV<br><br>&nbsp; Any help would be greatly appreciated (i.e. a REAL
 tutorial describing which functions are used to do what and why, and how they do it) or I'd just be happy with a .dll that I can call stuff from if that's all you can do. Thanks again.<br><br><br>&nbsp; Benjamin C. Kiefer<br><br><br><br><br><br><br>------------------------------------------------------------------------------<br><br><br>&nbsp; _______________________________________________<br>&nbsp; Winpcap-users mailing list<br>&nbsp; <a ymailto="mailto:Winpcap-users@winpcap.org" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>&nbsp; <a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br><span>URL: <a target="_blank"
 href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/7edc3dda/attachment-0001.htm">http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/7edc3dda/attachment-0001.htm</a> </span><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 22 Jul 2009 18:05:42 -0700<br>From: Guy Harris &lt;<a ymailto="mailto:guy@alum.mit.edu" href="mailto:guy@alum.mit.edu">guy@alum.mit.edu</a>&gt;<br>Subject: Re: [Winpcap-users] Out of my depth...<br>To: <a ymailto="mailto:winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>Message-ID: &lt;<a ymailto="mailto:AD2079F3-C2FF-4AAA-AA0A-B89E7E1F85C3@alum.mit.edu" href="mailto:AD2079F3-C2FF-4AAA-AA0A-B89E7E1F85C3@alum.mit.edu">AD2079F3-C2FF-4AAA-AA0A-B89E7E1F85C3@alum.mit.edu</a>&gt;<br>Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;<br>&nbsp;&nbsp;&nbsp; delsp=yes<br><br><br>On Jul 22, 2009, at 4:43 PM, Benjamin Kiefer
 wrote:<br><br>&gt; Okay, I'm a college student who barely uses c++, and wanted to put&nbsp; <br>&gt; all the functionality of winpcap into a .dll that I can use in, say,&nbsp; <br>&gt; c#.<br><br>Is the goal to write such an encapsulation, or is the goal to use&nbsp; <br>WinPcap from C#?<br><br>If the goal is the latter - i.e., if you're not, for example, trying&nbsp; <br>to learn how to wrap C/C++ libraries for use in .NET - then the&nbsp; <br>Wikipedia page for pcap (libpcap/WinPcap):<br><br><span>&nbsp;&nbsp;&nbsp; <a target="_blank" href="http://en.wikipedia.org/wiki/Pcap">http://en.wikipedia.org/wiki/Pcap</a></span><br><br>says:<br><br>&nbsp;&nbsp;&nbsp; Wrappers for use of libpcap/WinPcap in languages other than C and C++<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br><br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; ? WinPcapNET and SharpPcap, .NET wrappers for WinPcap<br><br>and SharpPcap is at<br><br><span>&nbsp;&nbsp;&nbsp; <a target="_blank"
 href="http://sharppcap.wiki.sourceforge.net/">http://sharppcap.wiki.sourceforge.net/</a></span><br><br>(WinPcapNet is at<br><br><span>&nbsp;&nbsp;&nbsp; <a target="_blank" href="http://blogs.creadev.net/benj/2007/03/26/winpcapnet-first-release/">http://blogs.creadev.net/benj/2007/03/26/winpcapnet-first-release/</a></span><br><br>but I don't know whether anything's been done on it since then;&nbsp; <br>SharpPcap's last release was in May of this year, so it appears to be&nbsp; <br>active.)<br></div></div></div><br>



      </body></html>