请问我如果要传递一个文件,要用哪个函数??我觉得应该不是send请问是什么??问题很菜.....请原谅....

解决方案 »

  1.   

    简单的办法是用
    BOOL CopyFile(
      LPCTSTR lpExistingFileName,
                              // pointer to name of an existing file
      LPCTSTR lpNewFileName,  // pointer to filename to copy to
      BOOL bFailIfExists      // flag for operation if file exists
    );
      

  2.   

    cpoyfile是最简单的办法也可以用socket来传送文件
    http://www.csdn.net/develop/article/22/22196.shtm