Home » U++ Library support » U++ MT-multithreading and servers » downloading file progress bar
| downloading file progress bar [message #16873] |
Fri, 18 July 2008 17:44  |
TeCNoYoTTa
Messages: 138 Registered: July 2008 Location: Egypt
|
Experienced Member |
|
|
hello all
i am very happy that members here help me solving proplems that face me
now my program may do some process that take some time like downloading a file
Now i want to make the progress bar tell the user the progress
i know i need to do Multithreading but how can i do it ??
i didnt understand to example that comes with theIDE ... please help me
and thanks in advance
|
|
|
|
| Re: downloading file progress bar [message #16880 is a reply to message #16873] |
Sat, 19 July 2008 09:41   |
 |
mirek
Messages: 14291 Registered: November 2005
|
Ultimate Member |
|
|
String ExecuteRedirect(int max_redirect = DEFAULT_MAX_REDIRECT,
int retries = DEFAULT_RETRIES, Gate2<int, int> progress = false);
The last parameter, 'progress', defines a callback that is called to show to progress and allow the cancelation.
Progress class has 'operator Gate2<int, int>()', means you can directly connect it here, e.g. this should work:
Progress pi("Loading");
x.ExecuteRedirect(DEFAULT_MAX_REDIRECT, DEFAULT_RETRIES, pi);
Mirek
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Oct 21 11:27:17 GMT+2 2026
Total time taken to generate the page: 0.00801 seconds
|