PDA

Click to See Complete Forum and Search --> : Passing Multiple Parameters when using _beginthreadex


IrishJoker
Aug 20th, 2002, 05:49 AM
Hi,

This is the Code when I'm calling the function...

dwServerThread = _beginthreadex
( NULL , 0 , ClientAccept ,
(void *) sListen , 0 , &uThreadID );


The function it's calling is

unsigned __stdcall ClientThread(SOCKET *sListen)
{
return(0);
}
Now, what I want to do is to be able to pass another parameter as well as the sListen parameter...

Does anyone know how to do this....?

PS This code works no problem, but I can only send one parameter.

Regards,

IJ...

parksie
Aug 20th, 2002, 01:15 PM
Make a structure, and pass a pointer to that instead :)