Hi, i'm using msvb 6 with MFC to make a winsock application but i'm having a few problems learning the winsock2.h. This is the so far steps...i'm just learning this class.

void CDimDlg::OnButton1()
{
WSADATA info;
WSAPROTOCOL_INFO protocol_info;


WSAStartup(MAKEWORD(1,1), &info);

WSASocket(AF_INET, SOCK_STREAM, PF_INET, protocol_info, NULL, NULL);


}

i can't figure out the problem with the WSASocket functions....how do i fix this and what do i do next to start listening on the socket? do i have to do a bind()?