ftpget.h
来自「在VC++6.0的开发平台上」· C头文件 代码 · 共 56 行
H
56 行
// FtpGet.h: interface for the CFtpGet class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FTPGET_H__1160304D_4AB2_435E_A74C_CAD6DACCC94F__INCLUDED_)
#define AFX_FTPGET_H__1160304D_4AB2_435E_A74C_CAD6DACCC94F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CFtpGet
{
public:
CFtpGet();
virtual ~CFtpGet();
// password & user name
bool SetAccessRight(CString userName,CString userPass);
// open the connection
bool OpenConnection(CString server);
// only one file
bool GetFile(CString remoteFile,
CString localFile);
// a full CString array
int GetMultipleFile(CStringArray *remoteArray,
CStringArray *localArray,
int number_file);
// close the connection
bool CloseConnection();
private:// var
CInternetSession *pInternetSession;
CFtpConnection *pFtpConnection;
CString strServerName;
CString strPass;
CString strUser;
public:
CString strAppName;
bool missed[100];
};
#endif // !defined(AFX_FTPGET_H__1160304D_4AB2_435E_A74C_CAD6DACCC94F__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?