⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftpget.h

📁 在VC++6.0的开发平台上
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -