If you are using winsock you still need to explicitly include it in your project...I think its in Project->options->Link (or something).....and then add it along with the other libs

But then if you are using the MFC CSocket class I dont think you need it