I finally figured out how to make it work, so I put it here for others who might stumble upon it.
-, Visual ++ 6.0 2003 sdk. sdk , TOOLS- > OPTIONS- > DIRECTORIES. include winsock2.h 60 . , , winsock2 include windows.h. windows.h include V++ stdafx.h, winsock2.h . !