我使用mfc的CFtpConnection,CInternetFile,但是找不到对应的项。
请大侠们传道解惑

解决方案 »

  1.   

    CFtpConnection,CInternetFile本身并不支持断点续传。
    首先必须先确认FTP服务器是否支持段点续传(现在的一般默认的都可的)。
    客户端通过发送FTP命令(RESET)来判断是否支持。
    如果支持:
    则建立FTP连接定位到文件后,发送RESET 1000命令则表示从文件的第1000个字节开始读取......你可以在CSDN上查看以前相关的文章.
      

  2.   

    use a log file to record the current size , then resume it via this point
      

  3.   

    See the sample below, FYI: http://www.codeproject.com/useritems/pauseresume.asp
      

  4.   

    to qing:
    nice to see the sample, thanks very much.
    i will give the scores after finish my work.
      

  5.   

    A question:
    Why my vc dont have FTPCommand ???