Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


A question about Indy Component

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic




  • Member
  • Pip
  • 61 posts
  • Joined 18-October 03
I installed Indy Component version 9.X

I would like to download a file by using IdHTTP ..

So, here is my code

  TFileStream *f; 

      f = new TFileStream (destination.c_str(), fmCreate ); 



There is no problem for that.. Let's imagine a big file. about 100 mb.. And suppose, you want to cancel the downloading.

I tried all functions->
IdHTTP->EndWork (wmRead);

They didn't work. Because, when I click to download again : IdHttp's functions : Work and WorkBegin aren't called.
I think, no one of this commands (see above) cancels the downloading.

Any ideas?

How to remove advertisement from MSFN