📄 ftpget.h
字号:
// FtpGet.h: interface for the CFtpGet class.
#if !defined(AFX_FTPGET_H__9A4CA560_F2F5_11D3_9FF0_0080C8F223E1__INCLUDED_)
#define AFX_FTPGET_H__9A4CA560_F2F5_11D3_9FF0_0080C8F223E1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxinet.h>
class CFtpGet
{
public:// function
CFtpGet();
virtual ~CFtpGet();
// password & user name
bool SetAccessRight(CString userName,CString userPass);
// open the connection
bool OpenConnection(CString strServer);
// a full CString array
int GetMultipleFile(CStringArray *remoteArray,
CStringArray *localArray,
int number_file);
int GetMultipleFileName( CStringArray *localNameArray);
// close the connection
bool CloseConnection();
private:// var
CInternetSession *pInternetSession;
CFtpConnection *pFtpConnection;
CString m_strFullURL;
CString m_strFullPath;
CString m_strServerName;
CString m_strPass;
CString m_strUser;
DWORD dwServiceType;
INTERNET_PORT nPort;
public:
CString strAppName;
};
#endif // !defined(AFX_FTPGET_H__9A4CA560_F2F5_11D3_9FF0_0080C8F223E1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -