Re: ASSERT(pState->m_hSocketWindow != NULL)
hmmmmm I faced this problem long time ago , but le me recollect it.
yeh do the following things.
1. If u r using VS6.0 install Visual Studio Service Pakc 6 or Higer.
2. In the main thread accept the new connection, this will
give u a new CSocket object. Detach the socket handle from this
socket. Start new thread in suspended mode. Then assign this
detached socket handle to some member varibale of thread object.
then Resume the thread. In the InitInstance of ure new thread attach
that sockt handle to some member variable socket. And use this new socket for further communication.
2nd Point is just to make the whole process more safer.
and the last advice dont use MFC sockets, MFC is bull **** stuff. Buggy and slow. Instead of it use WINSOCK API, those are quite fast and less buggy.
Unmanaged in a .NET world