Home » U++ Library support » U++ MT-multithreading and servers » knowing download speed and ProgressIndicator
Re: knowing download speed and ProgressIndicator [message #17157 is a reply to message #16962] |
Thu, 31 July 2008 20:22 |
TeCNoYoTTa
Messages: 138 Registered: July 2008 Location: Egypt
|
Experienced Member |
|
|
thanks all
i did this but there is an error
void Download_Manager_Window::progress_indecator(int x, int all)
{
static int timer = 0;
static int data = 0;
progress_bar.Set(x,all);
timer = clock() - timer;
data = x - data;
label_DownloadSpeed.SetText(DblStr((data/timer) * 1.0 ) + " KB/S");
timer = clock();
data = x;
}
void Download_Manager_Window::Download_File(String link)
{
client.URL(link);
client.Execute(THISBACK( progress_indecator ));
}
this is the error
D:\Program Files\MyApps\CISL\main.cpp:57: error: 'progress_indecator' is not a member of 'Upp::TopWindow'
[Updated on: Thu, 31 July 2008 20:25] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 29 04:30:15 CEST 2024
Total time taken to generate the page: 0.04164 seconds
|