how to process events in a loop
in my C-Program there is a loop, where data are send and received.
I want to give the user a chance to break this loop.
There is a push-button on the dialog-form. In the event-handler there is a flag, which is set, when the button is pressed. But when the program is running in the lopp, this code is never reached.
In the loop, I want to break, if the flag is set.
How can I achieve that the button-pressed-event is processed,
when the program ist running in the transmission-loop.
Perhaps someone knows a solution.
Have a nice day!