Compiler Error in Visual Studios 2010

This is a discussion on Compiler Error in Visual Studios 2010 within the C++ Programming forums, part of the General Programming Boards category; Hey so I have recently been trying to port a bunch of my projects to Visual Studios 2010 and have ...

The code segment I provided is the first couple lines of a project, it defines a structure that is later used by a windows API keyboard hook. It compiles fine on VC++ 6 but due to the fact that VC++ 6 is old and has little support I thought switching to 2010 made good sense. Guessing by the compiler output I am using an include that is defined somewhere else as well, and Visual C++ 2010 wont have it! Can someone please tell me what I need to do to my includes to stop this error.

Ok well thanks iMalc I just one more quick question. I'm porting a project that uses the latest WinPcap libraries. I was wondering, as I am new to Visual Studio 2010 where exactly are the should I copy the WinPcap .h and library files? Also how do I link a my project to them?