Linking problem while building appln. developed in Visual studio 8 using visual studio6 vers

hi all

I tried building a DLL developed in Visual studio 8 (VC++) using Visual Studio 6.While building the DLL some header files say iphlpapi.h is missing.Is there any possibility to get Windows sdk for intel processor from internet or what is the solution for this?

Awaiting for responses...

Regards

Geetha

[341 byte] By [GeethaSG] at [2007-12-22]
# 1

iphlpapi.h should be in your

\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include

folder (it is there in Visual C++ 2005 Professional Edition)

Ted. at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2

hi ted...my problem is im using visual studio 6.i dont have the iphlpapi.h header file.

GeethaSG at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3

This forum is for Visual C++ 2005 issues, but for 6.0, you'll need to download and install the Platform SDK - February 2003 edition, then after installing, use the Visual Studio Integration start menu program item. Download from and follow instructions here:

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm

Ted. at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...
# 4

hi ted

I installed the SDK specified by you.It solved my basic problem.Thank you.

but now it is giving some linker errors

--Configuration: Jpcap - Win32 Release--
Compiling...
Jpcap.c
Linking...
Creating library Release/Jpcap.lib and object Release/Jpcap.exp
Jpcap.obj : error LNK2001: unresolved external symbol _GetIfEntry@4
Jpcap.obj : error LNK2001: unresolved external symbol _GetInterfaceInfo@8
Release/Jpcap.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

Jpcap.dll - 3 error(s), 0 warning(s)

Can anyone help me to solve this problem?

Regards

Geetha

GeethaSG at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...
# 5

Now that you have the correct headers (for compilation) you also have to change your linker settings to link to iphlpapi.lib

under:

Project - Settings - Link (tab) - Object/Library modules

Ted. at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...
# 6

Hi,

I download from the link and installed sdk. I set up my VS 6.0 to include the file path. But got compile error:

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 : ')'

Can you help please? Thanks.

Yan

YZSW at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...
# 7

First: Visual C++ 6.0 is no longer supported.

Second: Using Visual C++ 6.0 to compile the latest version of the Platform SDK is not guaranteed to work.

Having said that PMIB_ICMP_EX is defined in iprtrmib.h so you should ensure that this header file is being included - though on my system this header is #include'd by iphlpapi.h.

JonathanCaves-MSFT at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...