bcyde
February 4th, 2000, 12:44 PM
I just want a little help and clarification about making a program pause and wait for other processes to finish and using doevents. I want to program a loop that pauses to make sure that that all the pending events that are caused by the previous step in the same loop are finished before proceeding further. Specifically I have a loop that sends data using the winsock control and want to wait for the data to be finished transmitting before doing any other processing tasks. Any ideas would be greatly appreciated. I initially thought to use a do while loop with doevents like so:
(...previous code in the for loop)
do while boolean_var = true
doevents
loop
(.. remaining code)
and have the winsock control update boolean_var to false in a separate function when it's finished. My questions are, is this feasible (and optimal), and does doevents work for processes within the same program or does it apply to external processes that windows is running. Thank you,
(...previous code in the for loop)
do while boolean_var = true
doevents
loop
(.. remaining code)
and have the winsock control update boolean_var to false in a separate function when it's finished. My questions are, is this feasible (and optimal), and does doevents work for processes within the same program or does it apply to external processes that windows is running. Thank you,