资源简介
C++编写的Socket通信程序源代码,C++编写的Socket通信程序源代码
代码片段和文件信息
// Client.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Client.h“
#include “ClientDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CClientApp
BEGIN_MESSAGE_MAP(CClientApp CWinApp)
//{{AFX_MSG_MAP(CClientApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CClientApp construction
CClientApp::CClientApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CClientApp object
CClientApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CClientApp initialization
BOOL CClientApp::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
CClientDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 34952 2006-09-10 10:18 Socket通信\Client\Client.aps
.CA.... 813 2006-09-10 10:18 Socket通信\Client\Client.clw
.CA.... 2157 2006-09-10 10:12 Socket通信\Client\Client.cpp
.CA.... 4159 2006-09-10 10:12 Socket通信\Client\Client.dsp
.CA.... 535 2006-09-10 10:18 Socket通信\Client\Client.dsw
.CA.... 1324 2006-09-10 10:12 Socket通信\Client\Client.h
.CA.... 41984 2006-09-10 10:18 Socket通信\Client\Client.ncb
.CA.... 48640 2006-09-10 10:18 Socket通信\Client\Client.opt
.CA.... 670 2006-09-10 10:18 Socket通信\Client\Client.plg
.CA.... 4767 2006-09-10 10:18 Socket通信\Client\Client.rc
.CA.... 2779 2006-09-10 10:16 Socket通信\Client\ClientDlg.cpp
.CA.... 1309 2006-09-10 10:13 Socket通信\Client\ClientDlg.h
.CA.... 3579 2006-09-10 10:12 Socket通信\Client\ReadMe.txt
.CA.... 1078 2006-09-10 10:12 Socket通信\Client\res\Client.ico
.CA.... 398 2006-09-10 10:12 Socket通信\Client\res\Client.rc2
.CA.... 637 2006-09-10 10:16 Socket通信\Client\resource.h
.CA.... 208 2006-09-10 10:12 Socket通信\Client\StdAfx.cpp
.CA.... 1102 2006-09-10 10:12 Socket通信\Client\StdAfx.h
.CA.... 106550 2006-09-10 10:18 Socket通信\Client.exe
.CA.... 21536 2005-10-24 22:25 Socket通信\MyTcpClient\MyTcpClient.aps
.CA.... 1195 2005-10-24 22:26 Socket通信\MyTcpClient\MyTcpClient.clw
.CA.... 2227 2005-09-10 11:07 Socket通信\MyTcpClient\MyTcpClient.cpp
.CA.... 4249 2005-09-10 11:07 Socket通信\MyTcpClient\MyTcpClient.dsp
.CA.... 528 2005-09-10 11:07 Socket通信\MyTcpClient\MyTcpClient.dsw
.CA.... 1379 2005-09-10 11:07 Socket通信\MyTcpClient\MyTcpClient.h
.CA.... 58368 2006-09-09 11:51 Socket通信\MyTcpClient\MyTcpClient.ncb
.CA.... 53760 2006-09-09 11:51 Socket通信\MyTcpClient\MyTcpClient.opt
.CA.... 1127 2005-09-10 11:42 Socket通信\MyTcpClient\MyTcpClient.plg
.CA.... 5419 2005-09-10 11:42 Socket通信\MyTcpClient\MyTcpClient.rc
.CA.... 4762 2005-09-10 11:36 Socket通信\MyTcpClient\MyTcpClientDlg.cpp
............此处省略89个文件信息
- 上一篇:C++网络五子棋
- 下一篇:基于OpenGL的DEM显示
评论
共有 条评论