#include <winsock2.h>
Add a refrence to winsock library
Take Project-Settings-Link and add ws2_32.lib to the library modules list.
I am talking about VC++
tuxian said:personally I prefer C to C++ as all the intricacies of Object orientation are gone(may be at a expense). But its a lot easir in C.