資源簡介
本程序是關(guān)于多線程的、使用VC++6.0的MFC編寫的簡易端口掃描器

代碼片段和文件信息
//?PortScan.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“PortScan.h“
#include?“PortScanDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CPortScanApp
BEGIN_MESSAGE_MAP(CPortScanApp?CWinApp)
//{{AFX_MSG_MAP(CPortScanApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CPortScanApp?construction
CPortScanApp::CPortScanApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CPortScanApp?object
CPortScanApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CPortScanApp?initialization
BOOL?CPortScanApp::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
CPortScanDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????????0??2012-04-19?16:25??PortScan\Debug\AFXSTATE.sbr
?????文件????5219328??2012-05-20?15:09??PortScan\Debug\PortScan.bsc
?????文件?????118847??2012-05-20?15:09??PortScan\Debug\PortScan.exe
?????文件?????261928??2012-05-20?15:09??PortScan\Debug\PortScan.ilk
?????文件??????15788??2012-04-22?20:52??PortScan\Debug\PortScan.obj
?????文件????6951084??2012-04-22?20:52??PortScan\Debug\PortScan.pch
?????文件?????427008??2012-05-20?15:09??PortScan\Debug\PortScan.pdb
?????文件???????3256??2012-05-04?20:05??PortScan\Debug\PortScan.res
?????文件??????????0??2012-04-22?20:52??PortScan\Debug\PortScan.sbr
?????文件??????53357??2012-05-20?15:09??PortScan\Debug\PortScanDlg.obj
?????文件??????????0??2012-05-20?15:09??PortScan\Debug\PortScanDlg.sbr
?????文件?????106472??2012-04-22?20:52??PortScan\Debug\StdAfx.obj
?????文件????1391465??2012-04-22?20:52??PortScan\Debug\StdAfx.sbr
?????文件?????214016??2012-05-20?15:09??PortScan\Debug\vc60.idb
?????文件?????364544??2012-05-20?15:09??PortScan\Debug\vc60.pdb
?????文件??????21884??2012-05-20?15:09??PortScan\PortScan.aps
?????文件???????1736??2012-05-20?15:10??PortScan\PortScan.clw
?????文件???????2185??2012-04-18?14:11??PortScan\PortScan.cpp
?????文件???????4196??2012-04-18?20:50??PortScan\PortScan.dsp
?????文件????????524??2012-04-18?14:11??PortScan\PortScan.dsw
?????文件???????1346??2012-04-19?17:16??PortScan\PortScan.h
?????文件?????115712??2012-05-20?15:10??PortScan\PortScan.ncb
?????文件??????55808??2012-05-20?15:10??PortScan\PortScan.opt
?????文件????????739??2012-05-20?15:09??PortScan\PortScan.plg
?????文件???????6504??2012-05-04?20:05??PortScan\PortScan.rc
?????文件??????12337??2012-05-04?20:05??PortScan\PortScanDlg.cpp
?????文件???????2953??2012-05-04?19:46??PortScan\PortScanDlg.h
?????文件???????3615??2012-04-18?14:11??PortScan\ReadMe.txt
?????文件???????1078??2012-04-18?14:11??PortScan\res\PortScan.ico
?????文件????????400??2012-04-18?14:11??PortScan\res\PortScan.rc2
............此處省略10個文件信息
- 上一篇:巴特沃斯高通濾波器
- 下一篇:vc++使用大漠使用和dll頭文件等.rar
評論
共有 條評論