multi thread ing

hi all
i want to do part of project with multi threading in c++
but dont know ,how pass multi argument to thread in win 32
for example in this code

myhandle = CreateThread(0, 0, mythread, 0, 0, &mythreadid);

Thanks for your help!
As mentioned in kbw's thread. Create a struct with all of the inputs/ouputs. Then pass that in.

You mentioned in the other thread that you want to pass arrays, arrays are really just pointers, so the struct is really only hold an address to the array. You could store the size of the array as another variable in that struct so you know the bounds of your array.
Topic archived. No new replies allowed.