FtpGetFile接收指定的文件并且在本地建立它,文件可以不建立放到内存里吗

解决方案 »

  1.   

    不可以。lpszNewFile 
    Pointer to a null-terminated string that contains the name of the file to be created on the local system.
      

  2.   

    InternetReadFile
    用这个吧,可以读取并存储到buffer
      

  3.   

    //FtpGetFile只能下载到本地文件。
    //其实FtpXXX的操作都是针对文件的。
    //如果只能读入到buffer的话,如ls,用InternetReadFile