I am an absolute beginner at network programming so please forgive any stupid questions. I am trying to build a simple application that sends a string out over a Winsock connection. I have a couple questions about Winsock programming.

1. How do I make the winsock object available in my code. I have a sample project from a friend at work where the Winsock1 object is available, but I can't seem to get that same functionality in any new project. I looked for references etc but found none. Is there an import or something like that that I have to do?

2. I want to set up a small test environmant for the Winsock app at home. What is required to make a Windows 2003 server responded to Winsock connection requests. All I need is for it to verify that I can establish the Winsock connection, I'll deal with what it does later.

Any and all help would be greatley appreciated.