• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1758
  • Last Modified:

proc not found in iphlpapi.h

I am building an app that uses winsock2.h.  When I make the call GetAdaptersAddresses that is defined in iphlpapi.h, I get:

"The procedure entry point GetadaptersAddresses could not be located in the dynamic link library iphlpapi.dll"

It links, but this comes up on runtime.  I link with the ws2_32.lib.

Any pointers would be great!

Thanks

Chris
0
sads
Asked:
sads
1 Solution
 
cookreCommented:
Unless I have to have something from winsock 2, I settle for 1.1, include winsock.h and link with winsock32.lib.

This also has the advantage of giving me an exe that runs on 9x, nt, and 2k.

In any case, did you not link with iphlpapi.lib in the project?  Or are you doing a GetProcAddress() from the dll?
0
 
Roshan DavisCommented:
The function requires Windows XP Pro or Windows .NET Server.

Roshmon
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now