error C2039: “Command” : 不是“CFtpConnection”的成员 怎么解决?

koeileon 2006-06-04 09:17:07
m_pFtpConnection->Command(_T("NLST"),CFtpConnection::CmdRespRead, FTP_TRANSFER_TYPE_BINARY);

想通过Command向服务器发送命令,来实现断点续传传输可行么?

这是MSDN中CFtpConnection::Command

CInternetFile* Command(
LPCTSTR pszCommand,
CmdResponseType eResponse = CmdRespNone,
DWORD dwFlags = FTP_TRANSFER_TYPE_BINARY,
DWORD_PTR dwContext = 1
);
Parameters
pszCommand
A pointer to a string containing the command to be sent.
eResponse
Determines whether a response is expected from the FTP server. Can be one of the following values:
CmdRespNone No response is expected.
CmdRespRead A response is expected.
dwFlags
A value containing the flags that control this function. For a complete list, see FTPCommand.
dwContext
A pointer to a value containing an application-defined value used to identify the application context in callbacks.
Return Value
Nonzero if successful; otherwise 0. If the call fails, the Windows function GetLastError may be called to determine the cause of the error.

Remarks
This member function emulates the functionality of the FTPCommand function, as described in the Platform SDK.

...全文
187 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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