Andrey Buhtojarov

Member
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

161 Neutral

About Andrey Buhtojarov

  • Rank
    Newbie
  1.     Declare as static: private: static DWORD WINAPI RecvThread(LPVOID);        Pass instance pointer as thead parametr: ...     RemoteAddress.sin_port = SERVER_PORT;                    //Set Port     bind(Socket, (sockaddr*)&RemoteAddress, sizeof(RemoteAddress));     //Start the recieve thread     CreateThread(NULL, 0, RecvThread, (void *)this, 0, NULL); }           And you must correctly finish the thread. You can use this http://msdn.microsoft.com/ru-RU/library/windows/desktop/ms682396(v=vs.85).aspxhttp://msdn.microsoft.com/ru-RU/library/windows/desktop/ms682396(v=vs.85).aspx
  2.   Pass this pointer like arg into the thread. In the thread cast PVOID to you object pointer and use it.
  3. TestCooperativeLevel causing exception

    Is you d3ddev valid?
  4. Problems with vector.push_back()

      void PDraw(CDeck &d) passing by reference