|
-
Aug 20th, 2002, 05:49 AM
#1
Thread Starter
Lively Member
Passing Multiple Parameters when using _beginthreadex
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...
-
Aug 20th, 2002, 01:15 PM
#2
Monday Morning Lunatic
Make a structure, and pass a pointer to that instead
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|