I'm writing an application that will have one main window. That window will have a place to select two different files, two process bars, an OK button, and an Exit button.
What I'd like to happen is, for each file being processed, spawn a thread using it's own specific processing function. I'd like each of those two threads update their own progress bars. I'd also like a message at the end of it all saying "Complete".
I currently have a command line version set up that spawns two threads and joins both, showing the message at the end. How do I/can I make the threads update the progress bars? Is there some kind of cross thread event triggering mechanism? Like say, every so many percent, trigger an event to update the progress bar?
I've only read about ways to know that your process is done, not how to deal with updates in the middle.
Thanks in advance.
What I'd like to happen is, for each file being processed, spawn a thread using it's own specific processing function. I'd like each of those two threads update their own progress bars. I'd also like a message at the end of it all saying "Complete".
I currently have a command line version set up that spawns two threads and joins both, showing the message at the end. How do I/can I make the threads update the progress bars? Is there some kind of cross thread event triggering mechanism? Like say, every so many percent, trigger an event to update the progress bar?
I've only read about ways to know that your process is done, not how to deal with updates in the middle.
Thanks in advance.