ftpget.h

来自「INTERNET网络高级编程的包括邮件加密、MAPI、ISAPI、ACTIVEX」· C头文件 代码 · 共 50 行

H
50
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?