資源簡介
這是一個用vc++6.0開發的FTP搜索工具,里面有源代碼可供MFC,vc++編程愛好者學習

代碼片段和文件信息
//?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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????2457667??2004-12-21?17:57??vc++FTP搜索工具\Ftp?Search\Debug\IntelligentFtp.exe
?????文件???????1588??2004-11-18?12:42??vc++FTP搜索工具\Ftp?Search\FtpContent.cpp
?????文件???????1381??2004-11-18?12:42??vc++FTP搜索工具\Ftp?Search\FtpContent.h
?????文件???????1467??2004-11-18?12:41??vc++FTP搜索工具\Ftp?Search\FtpSite.cpp
?????文件???????1330??2004-11-18?12:41??vc++FTP搜索工具\Ftp?Search\FtpSite.h
?????文件??????38080??2004-11-19?23:21??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.aps
?????文件???????3423??2004-12-21?18:39??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.clw
?????文件???????2269??2004-11-18?08:31??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.cpp
?????文件???????4988??2004-11-19?00:31??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.dsp
?????文件????????551??2004-11-18?08:31??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.dsw
?????文件???????1412??2004-11-18?08:31??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.h
?????文件?????140288??2005-01-08?14:58??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.ncb
?????文件?????124928??2005-01-08?14:58??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.opt
?????文件????????262??2005-01-08?14:57??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.plg
?????文件???????7117??2004-11-19?23:21??vc++FTP搜索工具\Ftp?Search\IntelligentFtp.rc
?????文件???????6323??2004-11-19?17:04??vc++FTP搜索工具\Ftp?Search\IntelligentFtpDlg.cpp
?????文件???????1680??2004-11-19?00:21??vc++FTP搜索工具\Ftp?Search\IntelligentFtpDlg.h
?????文件??????10373??2004-11-19?23:21??vc++FTP搜索工具\Ftp?Search\ListContent.cpp
?????文件???????2437??2004-11-19?10:58??vc++FTP搜索工具\Ftp?Search\ListContent.h
?????文件???????1345??2004-11-19?12:48??vc++FTP搜索工具\Ftp?Search\PropertyCtrl.cpp
?????文件???????1839??2004-11-19?17:04??vc++FTP搜索工具\Ftp?Search\PropertyCtrl.h
?????文件???????3953??2004-11-19?11:19??vc++FTP搜索工具\Ftp?Search\QueryItems.cpp
?????文件???????1484??2004-11-19?11:18??vc++FTP搜索工具\Ftp?Search\QueryItems.h
?????文件???????3723??2004-11-18?08:31??vc++FTP搜索工具\Ftp?Search\ReadMe.txt
?????文件???????1078??2004-11-18?08:31??vc++FTP搜索工具\Ftp?Search\res\IntelligentFtp.ico
?????文件????????406??2004-11-18?08:31??vc++FTP搜索工具\Ftp?Search\res\IntelligentFtp.rc2
????..A.SH.??????3072??2005-01-08?14:20??vc++FTP搜索工具\Ftp?Search\res\Thumbs.db
?????文件???????1470??2004-11-19?10:57??vc++FTP搜索工具\Ftp?Search\resource.h
?????文件??????13526??2004-11-19?19:19??vc++FTP搜索工具\Ftp?Search\SearchSite.cpp
?????文件???????2067??2004-11-18?17:41??vc++FTP搜索工具\Ftp?Search\SearchSite.h
............此處省略10個文件信息
- 上一篇:基于VC++的圖像修復源代碼
- 下一篇:gprs程序源代碼
評論
共有 條評論