Hi,
I need to know how to create a Pointer to an array of object handles...
I need this to use the WaitForMultipleObjects API function.
Does anyone have a sample of code to show how to use it
Regards
IJ...
Printable View
Hi,
I need to know how to create a Pointer to an array of object handles...
I need this to use the WaitForMultipleObjects API function.
Does anyone have a sample of code to show how to use it
Regards
IJ...
Won't something this work?
PHP Code:int *mypointer = myarray;
How do I add Handles to that array.
I am Creating Threads and I get a Handle to them, now what I need is to have them in an array.
I also need to know how to get the amount of HANDLES in the array. Would sizeof do the trick...??
Regards
IJ...
How are you declaring the array? You want to declare an array of pointers of a pointer to an array? I think WaitForMultipleObjects returns a handle that you can simply pass to *mypointer (not mypointer). If you want to point to next item in the array (if you're using a pointer to an array), you can increase the pointer like this:
PHP Code:mypointer++;