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.