You're not linking to the correct library. I'm not 100% sure, but adding:
#pragma comment(lib, "wsock32.lib") should do the trick
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Offline 4,132 posts
since Oct 2006