i assumed the code from the MSDN website would be right.
ok its set to true now
it is still displaying the error for setsockopt and now it is also displaying the error message from this code:
error is 10045Code:if(listen(m_serversocket,0) < 0) { CString text; text.Format(_T("ERROR listening in the server socket: %d"), WSAGetLastError()); //---error---// AfxMessageBox(text); exit(1); }