-
大小: 689KB文件類(lèi)型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-05-14
- 語(yǔ)言: C/C++
- 標(biāo)簽: c++??網(wǎng)絡(luò)爬蟲(chóng)??
資源簡(jiǎn)介
用C++寫(xiě)的網(wǎng)絡(luò)爬蟲(chóng)程序,結(jié)構(gòu)嚴(yán)謹(jǐn),適合入門(mén)者研究

代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//
#include?“stdafx.h“
#include?“Spider.h“
#include?
#include?“ThreadParams.h“
#include?“ChildFrm.h“
#include?“SpiderDoc.h“
#include?“SpiderList.h“
#include?“SpiderView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CChildframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
//}}AFX_MSG_MAP
ON_MESSAGE(WM_USER_LISTOnView)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?construction/destruction
CChildframe::CChildframe()
{
//?TODO:?add?member?initialization?code?here
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
cs.style?=?WS_CHILD?|?WS_VISIBLE?|?WS_OVERLAPPED?|?WS_CAPTION?|?WS_SYSMENU
|?FWS_ADDTOtitle?|?WS_THICKframe?|?WS_MINIMIZEBOX?|?WS_MAXIMIZEBOX?|?WS_MAXIMIZE;
return?CMDIChildWnd::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
BOOL?CChildframe::ReplaceView(CRuntimeClass?*?pViewClass)
{
??CCreateContext?context;
??CView?*?pCurrentView;????
??//如果當(dāng)前沒(méi)有一個(gè)活動(dòng)的框架返回假值
??//?if?no?active?view?for?the?frame?return?FALSE?because?this?
??//?function?retrieves?the?current?document?from?the?active?view
??if?((pCurrentView=GetActiveView())==NULL)
?????return?FALSE;???????????????
??
??//?If?we‘re?already?displaying?this?kind?of?view?no?need?to?go?
??//?further.?如果我們已經(jīng)顯示了這種類(lèi)型的視圖,不用回到父親;
??if?((pCurrentView->IsKindOf(pViewClass))==TRUE)
?????return?TRUE;
????????????????????????????????????
???//?Get?pointer?to?CDocument?object?so?that?it?can?be?used?in?the?creation?
???//?process?of?the?new?view
???CDocument?*?pDoc=?pCurrentView->GetDocument();
???
????//?set?flag?so?that?document?will?not?be?deleted?when?view?is?destroyed
????BOOL?bAutoDelete=pDoc->m_bAutoDelete;
?? pDoc->m_bAutoDelete=FALSE;????
????//?Delete?existing?view?
????pCurrentView->DestroyWindow();
????//?restore?flag??
????pDoc->m_bAutoDelete=bAutoDelete;
????????????
????????????
????//?Create?new?view?and?redraw
???
???context.m_pNewViewClass=pViewClass;
???context.m_pCurrentDoc=pDoc;
???context.m_pNew
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件???????4409??2008-10-06?06:55??spider\ChildFrm.cpp
?????文件???????1499??1998-05-20?18:13??spider\ChildFrm.h
?????文件????????930??1998-05-25?20:30??spider\COPYRIGHT.txt
?????文件??????25019??2008-10-06?21:37??spider\Debug\ChildFrm.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\ChildFrm.sbr
?????文件?????100034??2008-10-06?21:37??spider\Debug\MainFrm.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\MainFrm.sbr
?????文件?????192555??2008-10-06?21:40??spider\Debug\Spider.exe
?????文件??????31300??2008-10-06?21:37??spider\Debug\Spider.obj
?????文件?????746496??2008-10-06?21:40??spider\Debug\Spider.pdb
?????文件??????11900??2008-10-06?02:34??spider\Debug\Spider.res
?????文件??????????0??2008-10-06?02:55??spider\Debug\Spider.sbr
?????文件??????18431??2008-10-06?21:37??spider\Debug\SpiderDoc.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\SpiderDoc.sbr
?????文件??????25509??2008-10-06?21:37??spider\Debug\SpiderList.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\SpiderList.sbr
?????文件??????40957??2008-10-06?02:55??spider\Debug\SpiderView.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\SpiderView.sbr
?????文件??????57957??2008-10-06?02:55??spider\Debug\StdAfx.obj
?????文件?????871510??2008-10-06?02:55??spider\Debug\StdAfx.sbr
?????文件?????112524??2008-10-06?21:37??spider\Debug\Thread.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\Thread.sbr
?????文件??????29333??2008-10-06?21:39??spider\Debug\UrlDlg.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\UrlDlg.sbr
?????文件??????15593??2008-10-06?02:55??spider\Debug\utily.obj
?????文件??????????0??2008-10-06?02:55??spider\Debug\utily.sbr
?????文件?????176128??2008-10-06?21:39??spider\Debug\vc60.pdb
?????文件??????20812??1998-05-30?15:08??spider\MainFrm.cpp
?????文件???????2637??1998-05-25?14:13??spider\MainFrm.h
?????文件???????1442??2008-10-04?00:59??spider\read.txt
............此處省略40個(gè)文件信息
評(píng)論
共有 條評(píng)論