<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 1 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 1 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 1 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> </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 <<a ymailto="mailto:redslasher99@yahoo.com"
href="mailto:redslasher99@yahoo.com">redslasher99@yahoo.com</a>><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: <<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>><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> <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" <<a ymailto="mailto:gianluca.varenni@cacetech.com"
href="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</a>><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: <11C64035AA734BA88269EC96445774DF@NELSON3><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br> ----- Original Message ----- <br> From: Benjamin Kiefer <br> To: <a ymailto="mailto:winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a> <br> Sent: Wednesday, July 22, 2009 4:43 PM<br> Subject: [Winpcap-users] Out of my depth...<br><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 <br><br>Which samples in the developer's pack do not compile? Can you be a bit more specific?<br><br><br> 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> 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> Benjamin C. Kiefer<br><br><br><br><br><br><br>------------------------------------------------------------------------------<br><br><br> _______________________________________________<br> Winpcap-users mailing list<br> <a ymailto="mailto:Winpcap-users@winpcap.org" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br> <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 <<a ymailto="mailto:guy@alum.mit.edu" href="mailto:guy@alum.mit.edu">guy@alum.mit.edu</a>><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: <<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>><br>Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;<br> delsp=yes<br><br><br>On Jul 22, 2009, at 4:43 PM, Benjamin Kiefer
wrote:<br><br>> Okay, I'm a college student who barely uses c++, and wanted to put <br>> all the functionality of winpcap into a .dll that I can use in, say, <br>> c#.<br><br>Is the goal to write such an encapsulation, or is the goal to use <br>WinPcap from C#?<br><br>If the goal is the latter - i.e., if you're not, for example, trying <br>to learn how to wrap C/C++ libraries for use in .NET - then the <br>Wikipedia page for pcap (libpcap/WinPcap):<br><br><span> <a target="_blank" href="http://en.wikipedia.org/wiki/Pcap">http://en.wikipedia.org/wiki/Pcap</a></span><br><br>says:<br><br> Wrappers for use of libpcap/WinPcap in languages other than C and C++<br><br> ...<br><br> ? WinPcapNET and SharpPcap, .NET wrappers for WinPcap<br><br>and SharpPcap is at<br><br><span> <a target="_blank"
href="http://sharppcap.wiki.sourceforge.net/">http://sharppcap.wiki.sourceforge.net/</a></span><br><br>(WinPcapNet is at<br><br><span> <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; <br>SharpPcap's last release was in May of this year, so it appears to be <br>active.)<br></div></div></div><br>
</body></html>