In some cases, your system may generate an error indicating winsock2.h c2011 error. This problem can be caused by a number of reasons.
Approved: Fortect
Not The Answer You Are Looking For? Search For Other Questions Tagged C ++ Windows Visual-studio Winapi Marketing Web Or Ask Your Concerns.
My educated guess is the order in which my wife and I have headings i.e. include winsock2.h
first first>) or Define Before win32_lean_and_mean similar to windows.h
, which prevents windows.h from considering winsock v1.
#include #include
#define WIN32_LEAN_AND_MEAN#include #include
clarified May 11 ’11 at 22:31
28.5k
After the headache: I have #include "Winsock2.Is h"
before #include "windows.h"
and "#include" Winsock. h "
, which made the deal easier.
Approved: Fortect
Fortect is the world's most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, Fortect quickly finds and fixes a broad range of Windows problems - from system instability and security issues to memory management and performance bottlenecks.
I checked the recursion, I found header files that contain (recursive) files #include "windows.h"
and "#include" Winsock.h " also write Winsock2
# include.h
. In these specific files, I added Winsock2 # include.h
as the first specific include.
Just be patient, read the inclusions one by one and install this command first #include "Winsock2.h"
then just #include "windows.h"
< / p>
answered Aug 5, 2014 at 5:43 pm
22.9k
Speed up your computer's performance now with this simple download.