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]
==================================================================
