用socket网页


这是一个可以用Socket技术下载网页的工具
资源截图
代码片段和文件信息
// connectApn.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “connectApn.h“
#include “connectApnDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CConnectApnApp

BEGIN_MESSAGE_MAP(CConnectApnApp CWinApp)
//{{AFX_MSG_MAP(CConnectApnApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CConnectApnApp construction

CConnectApnApp::CConnectApnApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CConnectApnApp object

CConnectApnApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CConnectApnApp initialization

BOOL CConnectApnApp::InitInstance()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}

AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CConnectApnDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1071  2002-05-09 17:04  connectApnMySocket.cpp
     文件        7190  2002-05-10 18:51  connectApnconnectapn.log
     文件        1139  2002-05-10 18:51  connectApnconnectApn.plg
     文件       55808  2002-05-10 18:52  connectApnconnectApn.opt
     文件        6192  2002-05-09 19:09  connectApnconnectApn.rc
     文件        1287  2002-05-09 17:01  connectApnMySocket.h
     文件        2102  2002-05-10 17:32  connectApnconnectApn.clw
     文件        3651  2002-05-09 15:40  connectApnReadMe.txt
     文件        1368  2002-05-09 15:40  connectApnconnectApn.h
     文件        2213  2002-05-09 15:40  connectApnconnectApn.cpp
     文件       50176  2002-05-10 18:52  connectApnconnectApn.ncb
     文件       36136  2002-05-09 19:09  connectApnconnectApn.aps
     文件        1102  2002-05-09 15:40  connectApnStdAfx.h
     文件         212  2002-05-09 15:40  connectApnStdAfx.cpp
     目录           0  2002-05-09 15:40  connectApn
es
     文件         402  2002-05-09 15:40  connectApn
esconnectApn.rc2
     文件        1078  2002-05-09 15:40  connectApn
esconnectApn.ico
     文件        5502  2002-05-10 18:51  connectApnconnectApnDlg.cpp
     文件         543  2002-05-09 15:40  connectApnconnectApn.dsw
     目录           0  2002-05-09 15:40  connectApnDebug
     文件       31648  2002-05-10 18:51  connectApnDebugconnectApnDlg.obj
     文件      237360  2002-05-10 18:51  connectApnDebugconnectApn.ilk
     文件        2992  2002-05-09 19:10  connectApnDebugconnectApn.res
     文件      205824  2002-05-10 18:51  connectApnDebugvc60.idb
     文件     5558008  2002-05-09 17:04  connectApnDebugconnectApn.pch
     文件      364544  2002-05-10 18:51  connectApnDebugvc60.pdb
     文件      106449  2002-05-09 17:04  connectApnDebugStdAfx.obj
     文件        7262  2002-05-09 17:04  connectApnDebugMySocket.obj
     文件       14731  2002-05-09 17:04  connectApnDebugconnectApn.obj
     文件      110652  2002-05-10 18:51  connectApnDebugconnectApn.exe
     文件      386048  2002-05-10 18:51  connectApnDebugconnectApn.pdb
............此处省略4个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)