资源简介
使用对话框实现向指定的ip和端口发送文件,发送数据,获取本机ip,多线程操作

代码片段和文件信息
// Server.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Server.h“
#include “ServerDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CServerApp
BEGIN_MESSAGE_MAP(CServerApp CWinApp)
//{{AFX_MSG_MAP(CServerApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CServerApp construction
CServerApp::CServerApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CServerApp object
CServerApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CServerApp initialization
BOOL CServerApp::InitInstance()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
// 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.
CServerDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1136 2010-09-17 15:25 Server\Server.clw
文件 1951 2000-07-27 20:46 Server\Server.cpp
文件 4141 2000-07-27 21:19 Server\Server.dsp
文件 535 2000-07-27 20:47 Server\Server.dsw
文件 1324 2000-07-27 20:46 Server\Server.h
文件 91136 2010-09-17 15:25 Server\Server.ncb
文件 663 2010-09-17 15:25 Server\Server.plg
文件 208 2000-07-27 20:46 Server\StdAfx.cpp
文件 1047 2000-07-27 20:46 Server\StdAfx.h
文件 913 2010-09-17 11:25 Server\resource.h
文件 2271 2010-09-17 11:28 Server\ServerDlg.h
文件 6199 2010-09-17 12:15 Server\ServerDlg.cpp
文件 1078 2000-07-27 20:46 Server\res\Server.ico
文件 398 2000-07-27 20:46 Server\res\Server.rc2
文件 8800 2010-09-17 12:20 Server\Release\Server.res
文件 7224632 2010-09-17 12:20 Server\Release\Server.pch
文件 50176 2010-09-17 12:20 Server\Release\vc60.idb
文件 1539020 2010-09-17 12:20 Server\Release\StdAfx.sbr
文件 726 2010-09-17 12:20 Server\Release\StdAfx.obj
文件 2685 2010-09-17 12:20 Server\Release\Server.sbr
文件 5703 2010-09-17 12:20 Server\Release\ServerDlg.sbr
文件 23125 2010-09-17 12:20 Server\Release\ServerDlg.obj
文件 8751 2010-09-17 12:20 Server\Release\Server.obj
文件 151552 2010-09-17 12:20 Server\Release\Server.exe
文件 3695616 2010-09-01 17:00 Server\Debug\Server.bsc
文件 2680 2010-09-17 15:25 Server\Debug\Server.res
文件 197632 2010-09-17 15:25 Server\Debug\vc60.idb
文件 6953584 2010-09-17 12:20 Server\Debug\Server.pch
文件 364544 2010-09-17 12:20 Server\Debug\vc60.pdb
文件 1383840 2010-09-17 12:20 Server\Debug\StdAfx.sbr
............此处省略18个文件信息
- 上一篇:UserGuide_IPNC_RDK_DM36x
- 下一篇:现在雷达技术
相关资源
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- 用VC 编写的仿QQ聊天室程序源代码
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- VC 围棋源代码
- 用VC 编写的基于SNMP的路由器拓扑程序
- 清华大学郑莉C 语言程序设计课件
- ping 程序 C语言
- 操作系统实验综合设计【附代码】
- VC 编程实现活动主机扫描源代码
- vc 编写的基于TCP协议的客户/服务器
- 树状导航菜单的制作
- VC工程转Qt工程文件的工具
- 二进制方式打包和解包文件
- vc写的一个游戏里面三维场景漫游
- 学生成绩档案管理系统—保证可用
- 快递单邮政编码识别系统的实现
- 学生信息管理系统,非常详细
- cc2530-contiki读取DHT11并发送数据例程
- 人脸识别系统设计-毕业设计
- 广工信工图像处理作业
- opengl 实现的机器人行走
- 手机采集摄像头视频socket实时传播 由
- STM32F1向串口一直发送数据
- OpenGL 超酷三维动画DEMO
- STM32_USART_向PC机发送数据
评论
共有 条评论