Hi guys! I'm wrritting a Class, i have that
Ok, i need start the void UserThread() as a thread, i tryed with _begin thread but give me a 'argument error' :C
Code:
class Player
{
private:
/*......*/
void UserThread(){
std::cout << "Player connected and started the Thread!" << std::endl;
};
/*......*/
public:
/*......*/
void StartThread()
{_beginthread(this->UserThread, 0,0);};
/*......*/
};