I m using vs 2008 c++ compiler try to compile my code and it is giving error #error : MFC requires use of Winsock2.h.
in that file in which i used socket API.
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE\afxwin.h(84) : fatal error C1189: #error : MFC requires use of Winsock2.h