Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Downlaod Speed mit URLDownloadToFile (https://www.delphipraxis.net/78761-downlaod-speed-mit-urldownloadtofile.html)

Asfaloth 10. Okt 2006 18:58


Downlaod Speed mit URLDownloadToFile
 
Hi.
ich lade eine Dati mit URLDownloadToFile herunter.
Ich habe mir das als Vorlage genommen.

Meine Frage: Kann ich auch die aktuelle Geschwindigkeit anzeigen lassen oder die schon geladenen Bytes? Die Gesamtgröße kenne ich! (am Besten beides ^^)

Achja, ich möchte OHNE Indy arbeiten!!!

Grüße
Asfaloth

shmia 11. Okt 2006 17:31

Re: Downlaod Speed mit URLDownloadToFile
 
Die geladenen Bytes bekommst du über die Methode:
Delphi-Quellcode:
function OnProgress(ulProgress, ulProgressMax, ulStatusCode: ULONG; szStatusText: LPCWSTR): HResult; stdcall;
im Parameter ulProgress. ulProgressMax enthält die Gesamtanzahl der Bytes.

Asfaloth 11. Okt 2006 19:14

Re: Downlaod Speed mit URLDownloadToFile
 
danke schonmal

aber.... aber wie kann ich das in einem label anzeigen?? bei mir sagt er immer "Inkompatieble Typen: string und Cardinal"

EDIT: habs herausgefunden :D mit IntToStr wens interresiert ^^

MathiasSimmack 11. Okt 2006 19:16

Re: Downlaod Speed mit URLDownloadToFile
 
Na ja, ist halt eine Zahl. Ich sag nur Hier im Forum suchenIntToStr. :stupid:


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:09 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz