Original Post
I have some code here in a class CWorld, that goes...
...
bool CWorld::bInitServer()
{
...
m_hListenThread = CreateThread(NULL,
NULL, (LPTHREAD_START_ROUTINE)&vListenThread,
NULL, NULL, &m_dwListenThreadID);
...
}
//Thread to listen for new connections
void CWorld::vListenThread()
{
...
The error I get is that it says
''error C2276: ''&'' : illegal operation on bound member function expression''
on the third parameter of the CreateThread function.
As I understood it, the &vListenThread returned the address of that function, which is then casted into a pointer to a THREAD_START_ROUTINE, so I don''t understand what the error is and can''t figure it out.
If anyone can help I''d be very appreciative.
Thank you,
-lao