资源简介
用MFC开发的UDP接收和发送软件,有源码,对于自己想用MFC开发的工程人员具有非常好的学习和参考价值

代码片段和文件信息
// msocudp.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “UDpAsySk.h“
#include “msocudp.h“
#include “msocudpDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMsocudpApp
BEGIN_MESSAGE_MAP(CMsocudpApp CWinApp)
//{{AFX_MSG_MAP(CMsocudpApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CMsocudpApp construction
CMsocudpApp::CMsocudpApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMsocudpApp object
CMsocudpApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMsocudpApp initialization
BOOL CMsocudpApp::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
CMsocudpDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 114763 2015-05-21 20:29 MFCUDP\Debug\msocudp.exe
文件 239404 2015-05-21 20:29 MFCUDP\Debug\msocudp.ilk
文件 14121 2015-05-21 20:29 MFCUDP\Debug\msocudp.obj
文件 5546804 2015-05-21 20:29 MFCUDP\Debug\msocudp.pch
文件 304128 2015-05-21 20:29 MFCUDP\Debug\msocudp.pdb
文件 3876 2015-05-21 20:29 MFCUDP\Debug\msocudp.res
文件 33697 2015-05-21 20:29 MFCUDP\Debug\msocudpDlg.obj
文件 106558 2015-05-21 20:29 MFCUDP\Debug\StdAfx.obj
文件 18646 2015-05-21 20:29 MFCUDP\Debug\UdpAsySk.obj
文件 197632 2015-05-21 20:29 MFCUDP\Debug\vc60.idb
文件 364544 2015-05-21 20:29 MFCUDP\Debug\vc60.pdb
文件 2194 1998-01-13 20:18 MFCUDP\msocudp.cpp
文件 4312 1998-08-27 07:07 MFCUDP\msocudp.dsp
文件 537 1998-08-27 07:07 MFCUDP\msocudp.dsw
文件 1343 1998-01-13 18:59 MFCUDP\msocudp.h
文件 41984 2015-05-21 20:29 MFCUDP\msocudp.ncb
文件 48640 2015-05-21 20:29 MFCUDP\msocudp.opt
文件 1724 2015-05-21 20:29 MFCUDP\msocudp.plg
文件 6735 1998-01-22 01:30 MFCUDP\msocudp.rc
文件 7817 1998-01-22 20:17 MFCUDP\msocudpDlg.cpp
文件 1635 1998-01-22 01:27 MFCUDP\msocudpDlg.h
文件 3370 1998-01-13 18:59 MFCUDP\ReadMe.txt
文件 1434 1999-03-10 16:53 MFCUDP\Readme2.txt
文件 1078 1998-01-13 18:59 MFCUDP\res\msocudp.ico
文件 399 1998-01-13 18:59 MFCUDP\res\msocudp.rc2
文件 1098 1998-01-22 01:27 MFCUDP\resource.h
文件 205 1998-01-13 18:59 MFCUDP\StdAfx.cpp
文件 1035 1998-01-13 18:59 MFCUDP\StdAfx.h
文件 4523 1999-01-10 19:12 MFCUDP\UdpAsySk.cpp
文件 1700 1998-01-22 00:29 MFCUDP\UdpAsySk.h
............此处省略6个文件信息
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- libnet发送udp和tcp包
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
- c++MFC车牌自动识别定位,只能定位和
- mfc+sql 酒店客房管理系统
- 基于图割的图像分割OpenCV+MFC实现
评论
共有 条评论