I really don't understand what you mean. The text doc I have no control over, it is just a commandline feed into the program. I am required to use the WaitForMultipleObjects for this assignment. I do have it working somewhat now, I have valid handles etc. I am now at the point where my logic is flawed and I don't know how to sort that out (too close to it I think):
This is how I have it running:
read in the file from command prompt into a vector of classes that holds 3 variables: grouplaunch number, program to run, any parameters needed
for loop to scroll through all the information in the vector
if (launchgroup == currentgroup)
and put these into a new vector2
else
iterate through vector2 and run createprocess with each and capture handle info
WaitForMulitpleObjects
get the timing and exit information
put all program, timing and exit information into vector3
change the currentgroup to the new group number
decriment (i) (I know this is evil)
if(i is the last program to run)
(I had to add this because I had to capture the last program for it would never hit the else statement)
Everything in the else statement is put into here again
At the end, vector3 is printed to screen in a table format.
I know it is pretty bad and clunky and I shouldn't have the same code twice(I will fix that later on), but right now it at least works for the most part. I think I need more help now with the logic than anything else.
Thanks for the input though, it makes me think from different angles.