Salve,
nel seguente codice:
va bene usare il casting con le parentesi tonde o avrei dovuto fare così:codice:while(1) { Socket* s=in.Accept(); cout << "a client connected..." << endl; unsigned int ret; _beginthreadex(0,0,Answer,(void*) s,0,&ret); }
per rendere il tutto più conforme al C++?codice:while(1) { Socket* s=in.Accept(); cout << "a client connected..." << endl; unsigned int ret; _beginthreadex(0,0,Answer,static_cast<void *> s,0,&ret); }
grazie



Rispondi quotando
al volante son nervoso
lus