-niezam, Malaysia.
From: xchen <[EMAIL PROTECTED]>
To: "Mr Researcher" <[EMAIL PROTECTED]>, winpcap-users <[EMAIL PROTECTED]>
Subject: RE: [WinPcap-users] #include <windows.h> problem...
Date: Sat, 1 Mar 2003 14:00:33 -0400
You should put #include pcap.h (or packet32.h) in front of #include windows.h.
Shawn
>===== Original Message From "Mr Researcher" <[EMAIL PROTECTED]> =====
>Hi,
>
>I have encountered a problem when I used #include <windows.h> on
>winpcap-based program that I obtain form the example program (TestApp,
>pcap_filter,..etc).
>
>It is possible to me to used #include <windows.h>?
>
>This is a sample of error by Visual C++ 6.0 when I included #include
><window.h>
>
>f:\program files\microsoft visual studio\vc98\include\winsock2.h(2283) :
>error C2375: 'WSAAsyncGetHostByName' : redefinition; different linkage
> f:\program files\microsoft visual studio\vc98\include\winsock.h(814)
>: see declaration of 'WSAAsyncGetHostByName'
>f:\program files\microsoft visual studio\vc98\include\winsock2.h(2310) :
>error C2375: 'WSAAsyncGetHostByAddr' : redefinition; different linkage
> f:\program files\microsoft visual studio\vc98\include\winsock.h(818)
>: see declaration of 'WSAAsyncGetHostByAddr'
>f:\program files\microsoft visual studio\vc98\include\winsock2.h(2333) :
>error C2375: 'WSACancelAsyncRequest' : redefinition; different linkage
> f:\program files\microsoft visual studio\vc98\include\winsock.h(822)
>: see declaration of 'WSACancelAsyncRequest'
>f:\program files\microsoft visual studio\vc98\include\winsock2.h(2353) :
>error C2375: 'WSAAsyncSelect' : redefinition; different linkage
> f:\program files\microsoft visual studio\vc98\include\winsock.h(824)
>: see declaration of 'WSAAsyncSelect'
>e:\winpcap\winpcap 3.0 beta\wpdpack\test run\examples\testapp\testapp.c(87)
>: warning C4133: 'function' : incompatible types - from 'unsigned short
>[8192]' to 'char *'
>Error executing cl.exe.
>
>Testapp.obj - 58 error(s), 12 warning(s)
>
>I hope someone can help me. Any ideas or helps you could offer would be
>greatly appreciated.
>
>Have a nice day.
>
>-niezam,
>Malaysia.
>
>
>
>
>
>
>
>
>
>_________________________________________________________________
>Download the latest MSN Messenger http://messenger.msn.com.my
>
>
>
>==================================================================
> This is the WinPcap users list. It is archived at
> http://www.mail-archive.com/[EMAIL PROTECTED]/
>
> To unsubscribe use
> mailto: [EMAIL PROTECTED]
>==================================================================
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
