Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Threading or Asynchronus

Status
Not open for further replies.

rjbalicki

Programmer
Jan 30, 2001
28
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top