I am trying to build a C based application in 64 bit using the x64 target in the configuration manager in visual studio 2008.
However, I am using sockets and my program includes winsock.h and winsock32.lib in the library section of the project properties?
What is the equivalent for 64 bit? I do not want to run as 32 bit but as a pure 64 bit application.
Thanks for any help in advance.
Subbu
Winsock is a programming interface and the supporting program that handles input/output requests for Internet applications in a Windows operating system. It's called Winsock because it's an adaptation for Windows of the Berkeley UNIX sockets interface.
The fd_set structure (winsock. h) is used by Windows Sockets (Winsock) functions and service providers to place sockets into a set. HOSTENT. The HOSTENT (winsock. h) structure is used by functions to store information about a given host, such as host name, IPv4 address, and so forth.
The library ws2_32. lib is an import library.
The current version of the Windows Sockets specification is version 2.2. The current Winsock DLL, Ws2_32. dll, supports applications that request any of the following versions of Windows Sockets specification: 1.0.
Microsoft doesn't name some of these libraries very well, I'm afraid. As long as you link against the 64-bit version of winsock32.lib
you should be fine. Here's an MSDN link with a similar problem and more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With