Hei everyone,
I get that build error while trying to call a function in IP Helper from C code in a VS C++ project. I #include <Iphlpapi.h>. Someone solved this by adding the line:
#pragma comment(lib, "Iphlpapi")
and this also solves my problem. However, I don't understand why. What does that line do Thanks a lot.
/ Rolle

Error: LNK2019: unresolved external symbol _FlushIpNetTable...
DongGyoun
The #pragma used makes the linker link to the lib "lphlpapi.lib" which is probably the library that defined the unresolved symbol stated in the error you were getting.
For more details, please take a look at http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclang/html/_predir_comment.asp.
Hope this helps!
Thanks, Ayman Shoukry VC++ Team