[Winpcap-users] Re: problem using winpcap in VC++ MFC withwinsocksupport

Gianluca Varenni gianluca.varenni at cacetech.com
Tue May 2 15:05:43 GMT 2006

There can be two reasons for this problem:

1. wrong order of inclusions. Although it should *not* matter, it does: 
pcap.h includes winsock2.h, and this inclusion usually conflicts with the 
inclusion of winsock.h and windows.h. If you include both windows.h and 
pcap.h, try to swap them.

2. you are using VC6, and you haven't installed the platform SDK for Visual 
Studio6 (or you installed it, but you didn't register in within Visual 
Studio). In this case, please download the latest PSDK *compatible with VC6* 
which is available here 
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm, and 
register it within Visual Studio.

Hope it helps

----- Original Message ----- 
From: "Steve Mc Donnell" <s-mc-d at hotmail.com>
To: <winpcap-users at winpcap.org>
Sent: Tuesday, May 02, 2006 3:46 AM
Subject: RE: [Winpcap-users] Re: problem using winpcap in VC++ MFC 

>I had a similar problem earliar this year, I think you have to try 
>including pcap-int.h instead.
>>From: joe kibz <chikabanga2005 at yahoo.com>
>>Reply-To: winpcap-users at winpcap.org
>>To: winpcap-users at winpcap.org
>>Subject: [Winpcap-users] Re: problem using winpcap in VC++ MFC with 
>>Date: Tue, 2 May 2006 03:15:13 -0700 (PDT)
>>Problem : I am having problems using winpcap headers in MFC (visual C++) . 
>>I set the project settings at startup to include support for windows 
>>sockets . The program runs just fine until i include  winpcap headers [e.g 
>>: pcap.h] . At this point it brings up a whole lot of winsock errors at 
>>compilation time , which i have no idea how to debug ...
>>   Can somebody explain why this is happening and how to troubleshoot this 
>> problem ?
>>   joe
>>Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! 
>>Messenger with Voice.
>>Winpcap-users mailing list
>>Winpcap-users at winpcap.org
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from McAfee® 
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users 

More information about the Winpcap-users mailing list