Click to See Complete Forum and Search --> : Indicator


aihsinlee
June 27th, 2001, 10:28 AM
I'm delveloping an application which will call some .dll to performe engineering calcutions. The calculation will take few minuts to converge. I would like to have something to indicate that the program is runing while the calculation is in processing. I add a form with some messages, a progress bar and a timer control. The program will load this form so the user will see the progress bar runs during the calculation, and unload this form when the calculation is done. The problem is the calculation is in processing, but the progress bar would not run, it just hang in there looks like short of memory. It unloads the form when the calculation is done. Dose anyone knows how should I add this indicator?

Cimperiali
June 27th, 2001, 10:49 AM
Do not use a timer. Use a callback function, instead. Sorry, cannot post more about it right now.

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.

Cimperiali
June 27th, 2001, 10:51 AM
you may want to create your dll withevents. the event you add may be triggered inside your calculations to pass a value (integer, maybe) to use with progress bar

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.