error C2039: “Command” : 不是“CFtpConnection”的成员 怎么解决?
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.