471,618 Members | 1,153 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

ftp callback example C#

Hello all.

I've been looking all over the net for examples of how to use a
callback out of FtpGetFile in C# or VB.net so I can display progress to
the user. No such luck. I'm new to C# and am having problems
understanding how to use the callback with InternetSetStatusCallback.

Does anybody have any examples of how to implement a callback when
using FTP ?

Any help would be most appreciated.

Thanks,
Mark

Jan 9 '06 #1
2 2263
Hi,

<ma*****@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hello all.

I've been looking all over the net for examples of how to use a
callback out of FtpGetFile in C# or VB.net so I can display progress to
the user. No such luck. I'm new to C# and am having problems
understanding how to use the callback with InternetSetStatusCallback.

Does anybody have any examples of how to implement a callback when
using FTP ?


The framework does not include a ftp client, which one are you using?

A workaround, if you know the target file AND the expected size you can use
a timer in the UI to check the size at intervals and update your UI.

Of course, you are downloading it in a background thread don't u?
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 9 '06 #2
I've just found snippets of various things around and have FTP working
just fine. I just wanted the ability to update a progress bar out of
my download which uses FtpGetFile. I know you can implement a callback
out of this api, but I haven't been able to figure out how yet.

Jan 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by scott ocamb | last post: by
reply views Thread by Boltar | last post: by
3 posts views Thread by ryan.mitchley | last post: by
4 posts views Thread by Jimmy | last post: by
5 posts views Thread by Jef Driesen | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.