> Client class derived from ICS FTPClient, with an added timer which 
> is turned on at the start of the transfer, and off at the end of 
> the transfer, and every time the timer is fired (at intervals of 
> say, 1000 ms), it updates the progress bar.

A timer itself is high overhead, another hidden window and is not necessary
where an event is already being called regularly.  

Much easier to use GetTickCount which returns milliseconds since Windows booted,
store a value and then check against until a duration as passed, there is an
ICS function IcsCalcTickDiff that does this, TMagFtp updates progress every
2,000 ticks, two seconds. 

TWsocket has a Counter property that includes ConnectTick when a connection
started so you can easily check how long it's been going.


To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to