Answer the question
In order to leave comments, you need to log in
There were questions about WSAStartup can not find. What to do?
I am writing a chat on the instructions of the teacher (something like a lab.). There was a problem with WSAStartup.
Did a check and he constantly comes there. This library is missing, how to include it or fix the error?
The code:
WSADATA wsaDate;
WORD DLLVersion = MAKEWORD(2, 1);
if(WSAStartup(DLLVersion, &wsaDate) != 0);
{
std::cout << "Error" << std::endl;
exit(1);
}
#pragma comment(lib, "ws2_32.lib")
#include <winsock2.h>
#include <iostream>
#include <conio.h>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question