ftpcontent.cpp
来自「用Visual C++开发的一个FTP搜索工具。具有站点搜索、文件列表下载、文件」· C++ 代码 · 共 74 行
CPP
74 行
// FtpContent.cpp : implementation file
//
#include "stdafx.h"
#include "IntelligentFtp.h"
#include "FtpContent.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFtpContent
IMPLEMENT_DYNAMIC(CFtpContent, CRecordset)
CFtpContent::CFtpContent(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CFtpContent)
m_ID = 0;
m_IP = _T("");
m_Port = 0;
m_Path = _T("");
m_FileName = _T("");
m_IsDirectory = FALSE;
m_FileLength = 0;
m_nFields = 7;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CFtpContent::GetDefaultConnect()
{
return _T("ODBC;DSN=ftpdb");
}
CString CFtpContent::GetDefaultSQL()
{
return _T("[Content]");
}
void CFtpContent::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CFtpContent)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[ID]"), m_ID);
RFX_Text(pFX, _T("[IP]"), m_IP);
RFX_Long(pFX, _T("[Port]"), m_Port);
RFX_Text(pFX, _T("[Path]"), m_Path);
RFX_Text(pFX, _T("[FileName]"), m_FileName);
RFX_Bool(pFX, _T("[IsDirectory]"), m_IsDirectory);
RFX_Long(pFX, _T("[FileLength]"), m_FileLength);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CFtpContent diagnostics
#ifdef _DEBUG
void CFtpContent::AssertValid() const
{
CRecordset::AssertValid();
}
void CFtpContent::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?