Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

winsock and x64 target

Tags:

winsock

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

like image 428
Subbu Avatar asked Mar 31 '11 23:03

Subbu


People also ask

What is Winsock C++?

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.

What is Winsock H?

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.

What is Ws2_32 lib?

The library ws2_32. lib is an import library.

Which of the following DLL is required to run Winsock Version 2 application?

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.


1 Answers

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.

like image 138
Carl Norum Avatar answered Oct 17 '22 08:10

Carl Norum