Click here to Skip to main content
16,016,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My application which is made in windows7 using VC++, makes error in the windows XP environment as follows:


"Procedure Entry Point error : cannot find the inet_ntop DLL in the WS2_32.dll"

In my long code of above, I use visual studio 2015 and use many new types of dll like as inet_ntop instead of inet_ntoa, etc.

Thank in advance.

What I have tried:

This is my very serious problem for the confirmation of 6 month project.
Posted
Updated 7-Dec-16 21:03pm
v2
Comments
Jim Meadors 8-Dec-16 1:02am    
If you are targeting XP you have to target Framework 3.5. This could be the problem...

1 solution

The inet_ntop function (which is another name for the ANSI function InetNtopA) is not available with XP. See InetNtop function (Windows)[^]:
Quote:
Minimum supported client Windows 8.1, Windows Vista [desktop apps | Windows Store apps

When targeting Windows XP you should set the _WIN32_WINNT macro to 0x0501. Then you will get a compiler error when using unsupported functions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900