Discussion:
GetAdaptersInfo problem
(too old to reply)
Puneet
2004-04-29 05:03:37 UTC
Permalink
Hi All,

I am facing a problem with the PlatformSDK while compiling the code.

for my code i used a command called GetAdaptersInfo(). This command has
dependency of "Iphlpapi.h" and "iphlpapi.lib".

it gives following errors

--------------------Configuration: Project_V12 -
Win32Debug--------------------
Compiling...
Adapterdlg.cpp
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2065:
'PMIB_ICMP_EX' : undeclared identifier
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2146: syntax
error : missing ')' before identifier 'pStats'
c:\program files\microsoft sdk\include\iphlpapi.h(183) : warning C4229:
anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\iphlpapi.h(185) : error C2059: syntax
error : ')'
Error executing cl.exe.
Creating browse info file...

Project_V12.exe - 3 error(s), 1 warning(s)
----------------------------------------------------------------------------
--

plz let me know where is the problem.

Regards,
Puneet
Puneet
2004-04-29 05:38:49 UTC
Permalink
it is solved now.

i had to move Include directory order up
Microsoft SDK \ include
Program files\ Microsoft Visual Studio\VC98\Include

and same with Libraries Include directory order
Microsoft SDK \Lib
Program files\ Microsoft Visual Studio\VC98\Include

regards,
Puneet
Post by Puneet
Hi All,
I am facing a problem with the PlatformSDK while compiling the code.
for my code i used a command called GetAdaptersInfo(). This command has
dependency of "Iphlpapi.h" and "iphlpapi.lib".
it gives following errors
--------------------Configuration: Project_V12 -
Win32Debug--------------------
Compiling...
Adapterdlg.cpp
'PMIB_ICMP_EX' : undeclared identifier
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2146: syntax
error : missing ')' before identifier 'pStats'
anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\iphlpapi.h(185) : error C2059: syntax
error : ')'
Error executing cl.exe.
Creating browse info file...
Project_V12.exe - 3 error(s), 1 warning(s)
--------------------------------------------------------------------------
--
Post by Puneet
--
plz let me know where is the problem.
Regards,
Puneet
Continue reading on narkive:
Search results for 'GetAdaptersInfo problem' (Questions and Answers)
3
replies
router trouble?
started 2007-12-22 06:32:11 UTC
computer networking
Loading...