• 大小: 202KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-18
  • 语言: C/C++
  • 标签: 网络编程  C/S模式  

资源简介

VC++ 网络对战五子棋游戏(服务端+用户端)案例完整代码

资源截图

代码片段和文件信息

// Client.cpp : Defines the class behaviors for the application.
// Download by http://www.NewXing.com

#include “stdafx.h“
#include “Client.h“

#include “MainFrm.h“
#include “ClientDoc.h“
#include “ClientView.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)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
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()
{
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

// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

LoadStdProfileSettings();  // Load standard INI file options (including MRU)

// Register the application‘s document templates.  Document templates
//  serve as the connection between documents frame windows and views.

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CClientDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CClientView));
AddDocTemplate(pDocTemplate);

// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;

// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();

return TRUE;
}


/////////////////////////////////////////////////////

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-18 08:53  VC++ 网络对战五子棋游戏(服务端+用户端)\
     目录           0  2011-02-22 13:35  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\
     文件        3650  2008-02-01 08:15  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\Client.clw
     文件        4149  2011-03-16 23:08  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\Client.cpp
     文件        6023  2007-12-22 23:27  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\Client.dsp
     文件         537  2008-03-07 16:30  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\Client.dsw
     文件        1356  2007-12-20 07:50  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\Client.h
     文件       11492  2007-12-27 20:22  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\Client.rc
     文件        1801  2011-03-16 23:08  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\ClientDoc.cpp
     文件        1475  2007-12-20 07:50  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\ClientDoc.h
     文件       34104  2011-03-16 23:08  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\ClientView.cpp
     文件        4491  2007-12-24 19:55  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\ClientView.h
     文件        4670  2002-07-04 20:26  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\down.wav
     文件        1536  2007-12-25 19:35  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\LoginDlg.cpp
     文件        1369  2007-12-23 11:33  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\LoginDlg.h
     文件        3095  2007-12-25 21:58  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\MainFrm.cpp
     文件        1871  2007-12-25 13:15  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\MainFrm.h
     文件        1116  2011-03-16 23:08  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\MySplitterWnd.cpp
     文件         751  2007-12-20 10:12  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\MySplitterWnd.h
     文件        2131  2011-03-16 23:08  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\RenjuSocket.cpp
     文件         863  2007-12-23 11:34  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\RenjuSocket.h
     目录           0  2011-02-22 13:29  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\
     文件     1228854  2007-12-20 08:21  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\bkwood.bmp
     文件        3942  2007-12-20 08:21  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\black.bmp
     文件        1078  2007-12-20 07:50  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\Client.ico
     文件         398  2007-12-20 07:50  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\Client.rc2
     文件        1078  2007-12-20 07:50  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\ClientDoc.ico
     文件         766  2007-12-22 12:14  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\cursor2.cur
     文件         766  2007-12-22 12:14  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\hnwse.cur
     文件         766  2007-12-20 18:42  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\icon1.ico
     文件         766  2007-12-20 18:42  VC++ 网络对战五子棋游戏(服务端+用户端)\Client\res\icon3.ico
............此处省略42个文件信息

评论

共有 条评论