Andrey Buhtojarov

  • Content count

  • Joined

  • Last visited

Community Reputation

161 Neutral

About Andrey Buhtojarov

  • Rank
  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
  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