谁有文件上传ftp服务器的程序呀

besti_chs 2001-12-14 05:10:10
...全文
72 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
swordbroken 2001-12-24
  • 打赏
  • 举报
回复
This function stores a file on the FTP server.

BOOL WINAPI FtpPutFile(
HINTERNET hConnect,
LPCTSTR lpszLocalFile,
LPCTSTR lpszNewRemoteFile,
DWORD dwFlags,
DWORD dwContext);
Parameters
hConnect
[in] Valid handle to an FTP session.
lpszLocalFile
[in] Long pointer to a null-terminated string that contains the file name to send from the local system.
lpszNewRemoteFile
[in] Long pointer to a null-terminated string that contains the file name to create on the remote system.
dwFlags
[in] Specifies the conditions under which the transfer occurs. Can be a combination of the following values:
Value Description
INTERNET_FLAG_DONT_CACHE Does not add the returned entity to the cache. Identical to the preferred value INTERNET_FLAG_NO_CACHE_WRITE.
INTERNET_FLAG_HYPERLINK Forces a reload if there was no Expires time and no Last-Modified time returned by the server when determining whether to reload the item from the network.
INTERNET_FLAG_MUST_CACHE_REQUEST Causes a temporary file to be created if the file cannot be cached. Identical to the preferred value INTERNET_FLAG_NEED_FILE.
INTERNET_FLAG_NEED_FILE Causes a temporary file to be created if the file cannot be cached.
INTERNET_FLAG_NO_CACHE_WRITE Does not add the returned entity to the cache.
INTERNET_FLAG_RELOAD Forces a download of the requested file, object, or directory listing from the origin server, not from the cache.
INTERNET_FLAG_RESYNCRONIZE Performs a conditional download of the file.
INTERNET_FLAG_TRANSFER_ASCII Transfers the file as ASCII.
INTERNET_FLAG_TRANSFER_BINARY Transfers the file as binary.




dwContext
[in] Specifies an application-defined value that associates this search with application data. This parameter is used only if the application has already called InternetSetStatusCallback to set up a status callback. All status requests are handled synchronously.
besti_chs 2001-12-17
  • 打赏
  • 举报
回复
找不到呀
其实就是想问问api函数FtpPutFile()怎么用,诸位大虾指个道吧
besti_chs 2001-12-17
  • 打赏
  • 举报
回复
PutFile咋用呀?????????????????????????
kenli 2001-12-14
  • 打赏
  • 举报
回复
去找一个免费的Linux的Ftp server程序吧,多得是。
www.freecode.com, gun
或者去 sourceforge.net
肯定找得到。

16,549

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧