Tell me, please, where can I download the winsock2
library? Ezhzhe all clambered, I can not find ...
Closed due to the fact that off-topic participants αλεχολυτ , AK ♦ , andreymal , insolor , Cheg 17 Sep '17 at 14:31 .
- Most likely, this question does not correspond to the subject of Stack Overflow in Russian, according to the rules described in the certificate .
|
2 answers
if you create a project in mfc, then in the project dialog on the Advanced Features tab you tick Windows sockets, everything will now see (although nowhere in the project properties I have ever found an item that dunks, but if I don’t, I’ll swear). Here we are talking about the seven, probably in older versions in the same way ...
And if you do in pure Win32, then in the properties of the project you go Linker-Input and in the column AdditonalDependencies you write WSOCK32.LIB
|
In the code:
#include <WinSock2.h>
In Visual Studio:
Project => Project_name Properties (Alt + F7) => Configuration Properties => Linker => Command Line: ws2_32.lib
This is the case in Visual Studio 2010.
|
%WINDOWS%/system32/WINSOCK.dll
link for Win7x32 in case you do not have it. - ReinRaus