|
|
|
Re: Progress bars
Started by theDentist at 05-19-2006 9:50 AM. Topic has 5 replies.
|
|
05-19-2006, 9:50 AM
|
theDentist
Joined on 12-05-2005
Posts 42
|
|
|
|
Hi all,
Can anyone tell me how to program a progress bar to display the progress of, for example, a CopyFile function or uploading a file by FTP to an internet server. Is multi threading needed as two processes are going on at the same time.
Peter
|
|
|
|
|
Report
|
|
|
|
05-19-2006, 12:21 PM
|
Yasir
Joined on 03-15-2006
Posts 44
|
|
|
Hi peter
I think you need to user Timers Use a timer to handle it Create a time for say 500 milli seconds and then mention its handler function.
In the handler function increase the progress of progress control bar.
I think you dont need use threads.
If you have any confusions u r welcome to ask
Best Regards
-Yasir
|
|
|
|
|
Report
|
|
|
|
05-19-2006, 1:10 PM
|
theDentist
Joined on 12-05-2005
Posts 42
|
|
|
|
Hi,
Thanks Yasir, I'll give it a try, that does seem logical.
Regards
Peter
|
|
|
|
|
Report
|
|
|
|
05-29-2006, 12:30 AM
|
Yasir
Joined on 03-15-2006
Posts 44
|
|
|
Sorry.
onTimer call with block your other application for some time and its not called in multithreading way but it automatically generate event after specific time. So what you can do is create a seprate thread for upload a file on FTP.
|
|
|
|
|
Report
|
|
|
|
|
Codersource.Net » Programming » MFC Programming » Re: Progress bars
|
|
| |
|