Error c: \ program files \ microsoft sdks \ windows \ v7.0a \ include \ netioapi. h (155)

Source: Internet
Author: User

For the newly installed VS2010, there is no problem after the installation is successful, so I created a single-document MFC program to try it out. Which of the following is an error:

1> c: \ program files \ microsoft sdks \ windows \ v7.0a \ include \ netioapi. h (155): error C2146: syntax error: Missing ";" (before the identifier "PhysicalMediumType)
1> c: \ program files \ microsoft sdks \ windows \ v7.0a \ include \ netioapi. h (155): error C4430: The type specifier is missing-it is assumed to be int. Note: C ++ does not support default int
1> c: \ program files \ microsoft sdks \ windows \ v7.0a \ include \ netioapi. h (155): error C4430: The type specifier is missing-it is assumed to be int. Note: C ++ does not support default int

Netioapi. h This is the system header file. It is estimated that it is a configuration problem, so I will find the answer on the Internet and solve the problem as follows:

Change # include <ntddndis. h> to # include "ntddndis. h. Nima, what is the situation? Ntddndis. h This is not Microsoft's header file, it is the file in the WinPcap package.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.