资源简介
内容索引:VC/C++源码,系统相关,端口扫描
高级编程VC++端口扫描源代码,程序核心来自国外,作者汉化了界面,注释保留为英文,源代码可参考性大,端口扫描准确/快速,在VC++6下顺利编译
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
// Download by http://www.codefans.net
#include “stdafx.h“
#include “PortScan.h“
#include “MainFrm.h“
#include “Splash.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
// CG: The following line was added by the Splash Screen component.
//---new add
//CSplashWnd::ShowSplashScreen(this);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
//---new add
cs.style &= ~WS_THICKframe;
cs.style &= ~WS_MAXIMIZEBOX;
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
//---new add
void CMainframe::SetStatusBarText(CString &text)
{
if (!text.IsEmpty())
m_wndStatusBar.SetWindowText(text);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
----------- --------- ---------- ----- ----
148492 29
- 上一篇:高效 C++ 屏幕找图 屏幕搜索 透明找图
- 下一篇:通讯录管理系统含源代码
相关资源
- 使用微软蓝牙API的
- MFC_unicode相关链接库
- VS.net / VC++ 2003 2005(.sln)项目转化为
- vc++实现图像处理:中值滤波
- MRF2图像分割vc++代码
- 计算机图形学 中点画椭圆法 Bresenha
- 傅里叶描述子的提取,并且提取手势
- VC++写的功能非常强大的自定义列表控
- VC++ MFC的餐厅点餐系统
- 文件同步与异步读写
- 计算器 VC++
- VC++Spin(旋转)控件用法
- VC++摄像头视频采集及回放源程序
- vs2013 VC++项目里的Windows窗体应用程序
- VC++ 实现增大可执行文件的体积 自
- C++简单的画图程序源代码
- DTW算法VC++实现 源代码非常好,注释非
- VC++ 中实现进制2进制,10进制,16进制
- crm vc++源代码
- 门禁系统源代码 VC++
- 基于神经网络的车牌识别系统//VC++毕
- 操作系统实验--电梯调度 VC++实现
- C语言实现 简单的端口扫描
- vc++6.0实现的学生成绩管理系统代码
- 用vc++6.0做 的RSA的加密与解密程序
- VC++ 四种进程间通信的完整
- MFC小学生速算练习系统VS2017
- 端口扫描c实现
- 分数计算器课程设计
- VC使用CStringArray类创建和使用字符串数
评论
共有 条评论