Start the second network job and want to run the sample program given by Winpcap
Install the Winpcap driver and restart it. Run the command after setting the wpdpack directory in VC include and Lib.
The Link error is reported. The iphlpapi. Lib cannot be found. The link path of this library is not set, so it cannot be used.
Search answers online
1. The best solution is to find a platformsdk for Internet installation on Microsoft's website (about 140 MB)
2. By default, the Platform SDK is installed in vc2003 and vc2005, and these two files will be included in the SDK,
Vc6 users need to install Platform SDK for Internet by themselves, about MB
Search my computer. E: "Program Files" Microsoft platform SDK for Windows XP SP2 "LIB contains the lplpapi.
It seems that my SDK is installed
So in vc6.0
Tools-> Option-> directories, add path e to library files: "Program Files" Microsoft platform SDK for Windows XP SP2 "lib
Add path E: "Program Files" Microsoft platform SDK for Windows XP SP2 "include
You can.
If an error occurs
E:"Netmanage2" platformsdk "include"Ipexport. h(39): Error C2371:'In6 _ADDR':Redefinition; Different Basic Types
??????? C:"Program Files" Microsoft Visual Studio "vc98" include "ws2tcpip. H (68):See Declaration'In6 _ADDR'
Or it may be
:& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (282)
:
ErrorC2146
:Syntax
Error
:Missing '; 'before identifier 'reserved'
E
:& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (282)
:
ErrorC2501
:'Long _ PTR'
:Missing storage-class or type specifiers
E
:& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (282)
:
ErrorC2501
:'Reserved'
:Missing storage-class or type specifiers
E
:& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (722)
:
ErrorC2065
:'Long _ PTR'
:Undeclared identifier is because platform SDK is often used and Vc has its own SDK. The two sdks conflict with each other. In this case, you only need to select the workspace and then clean, put the psdk in the include statement at the top of the page for a long time. If you do not clean the file, you only need to put the psdk at the top of the page. If you do not clean the file, the second error will be reported.