我是用的ftpconnection的getfile 和 putfile来实现上传和下载,怎么显示其进度啊(传的是一个文件),提供点源码行吗??

解决方案 »

  1.   

    CFtpConnection::GetFile
    Override the dwContext default to set the context identifier to a value of your choosing. The context identifier is associated with this specific operation of the CFtpConnection object created by its CInternetSession object. The value is returned to CInternetSession::OnStatusCallback to provide status on the operation with which it is identified在OnStatusCallback这个回调函数中可以得到当前状态
      

  2.   

    获取文件大小是一定要得
    在www.codeproject.com里面搜索 download会有很多例子