Error in socket program .
-
Hai, Iam getting this errors when i compile it. error C2065: 'WSAAsyncGetHostByName' : undeclared identifier error C2065: 'WSACancelAsyncRequest' : undeclared identifier Note: I got this error previosly before some days and posted it here some them are replied to include winsock.h,winsock2.h.But it doesnt rectified, iam working in another project in that iam getting the same error.Can anyone please suggest me how to rectify it. Thanks in Advance Harshadha
-
Hai, Iam getting this errors when i compile it. error C2065: 'WSAAsyncGetHostByName' : undeclared identifier error C2065: 'WSACancelAsyncRequest' : undeclared identifier Note: I got this error previosly before some days and posted it here some them are replied to include winsock.h,winsock2.h.But it doesnt rectified, iam working in another project in that iam getting the same error.Can anyone please suggest me how to rectify it. Thanks in Advance Harshadha
Whats your compiler and application type?
WhiteSky
-
Hai, Iam getting this errors when i compile it. error C2065: 'WSAAsyncGetHostByName' : undeclared identifier error C2065: 'WSACancelAsyncRequest' : undeclared identifier Note: I got this error previosly before some days and posted it here some them are replied to include winsock.h,winsock2.h.But it doesnt rectified, iam working in another project in that iam getting the same error.Can anyone please suggest me how to rectify it. Thanks in Advance Harshadha
harshadha wrote:
error C2065: 'WSAAsyncGetHostByName' : undeclared identifier error C2065: 'WSACancelAsyncRequest' : undeclared identifier
You must include
Winsock2.h
in order to use these functions.harshadha wrote:
But it doesnt rectified,
Then you are doing something else wrong. What does your
stdafx.h
file look like?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne