migrating from VS 2005 to VS 2010

Hi all,

I just update my version from VS2005 to VS2010 and I got loads of error after trying to compile my project in VS2010. The errors regarding the following;


Error 37 error C2065: 'PMIB_TCPSTATS' : undeclared identifier C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\iphlpapi.h 411

Can anyone help?

Thanks.
I'm not sure (because I don't have VS2010 yet) but could it be that the SDK you're using is for the 2005 version and not 2010?
7.0a is the version of the SDK which comes with Visual Studio 2010

If you were previously using a pre-Vista version of the SDK, there has been a header reorg which affects this struct. So you might need an extra include now.

From MSDN's entry for the MIB_IPSTATS structure:
http://msdn.microsoft.com/en-us/library/aa366871%28VS.85%29.aspx

On the Microsoft Windows Software Development Kit (SDK) released for Windows Vista and later, the organization of header files has changed and the MIB_IPSTATS structure is defined in the Ipmib.h header file not in the Iprtrmib.h header file. Note that the Ipmib.h header file is automatically included in Iprtrmib.h which is automatically included in the Iphlpapi.h header file. The Ipmib.h and Iprtrmib.h header files should never be used directly.

Last edited on
Topic archived. No new replies allowed.