Results 1 to 2 of 2

Thread: Passing Multiple Parameters when using _beginthreadex

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Ireland, Dublin
    Posts
    76

    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...

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width