资源简介
以前很少见到c++关于爬虫方面的程序,用c++编写的爬虫程序 希望对大家有用

代码片段和文件信息
// 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;
// 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.
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_pNewDocTemplate=NULL;
context.m_pLastView=N
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2006-04-03 21:38 20060403_spider
目录 0 2008-06-02 19:00 20060403_spider\spider
文件 4179 1998-05-30 06:18 20060403_spider\spider\ChildFrm.cpp
文件 1499 1998-05-20 18:13 20060403_spider\spider\ChildFrm.h
文件 930 1998-05-25 20:30 20060403_spider\spider\COPYRIGHT.txt
目录 0 2008-06-02 18:45 20060403_spider\spider\Debug
文件 25633 2008-06-02 18:45 20060403_spider\spider\Debug\ChildFrm.obj
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\ChildFrm.sbr
文件 100684 2008-06-02 18:45 20060403_spider\spider\Debug\MainFrm.obj
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\MainFrm.sbr
文件 2950144 2008-06-02 18:45 20060403_spider\spider\Debug\Spider.bsc
文件 192608 2008-06-02 18:48 20060403_spider\spider\Debug\Spider.exe
文件 676860 2008-06-02 18:48 20060403_spider\spider\Debug\Spider.ilk
文件 31914 2008-06-02 18:45 20060403_spider\spider\Debug\Spider.obj
文件 4764148 2008-06-02 18:45 20060403_spider\spider\Debug\Spider.pch
文件 754688 2008-06-02 18:48 20060403_spider\spider\Debug\Spider.pdb
文件 11852 2008-06-02 17:24 20060403_spider\spider\Debug\Spider.res
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\Spider.sbr
文件 19045 2008-06-02 18:45 20060403_spider\spider\Debug\SpiderDoc.obj
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\SpiderDoc.sbr
文件 26123 2008-06-02 18:45 20060403_spider\spider\Debug\SpiderList.obj
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\SpiderList.sbr
文件 41605 2008-06-02 18:45 20060403_spider\spider\Debug\SpiderView.obj
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\SpiderView.sbr
文件 58498 2008-06-02 18:45 20060403_spider\spider\Debug\StdAfx.obj
文件 871669 2008-06-02 18:45 20060403_spider\spider\Debug\StdAfx.sbr
文件 113371 2008-06-02 18:45 20060403_spider\spider\Debug\Thread.obj
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\Thread.sbr
文件 30004 2008-06-02 18:45 20060403_spider\spider\Debug\UrlDlg.obj
文件 0 2008-06-02 18:45 20060403_spider\spider\Debug\UrlDlg.sbr
............此处省略46个文件信息
- 上一篇:《易学C ++ 》中文版PDF格式
- 下一篇:数据结构与算法C语言描述英文版
相关资源
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
- c++ 画图(14Qt-XPS)
- c++多边形交并差运算
- VC++基于OpenGL模拟的一个3维空间模型
评论
共有 条评论