资源简介
这是一款可以通过网络对弈的中国象棋程序源代码。
程序使用方法:Create创建主机,对方Join后即可开战!
程序使用方法:Create创建主机,对方Join后即可开战!
代码片段和文件信息
// chineseqi.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “chineseqi.h“
#include “process.h“
#include “MainFrm.h“
#include “chineseqiDoc.h“
#include “chineseqiView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CChineseqiApp
BEGIN_MESSAGE_MAP(CChineseqiApp CWinApp)
//{{AFX_MSG_MAP(CChineseqiApp)
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)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CChineseqiApp construction
CChineseqiApp::CChineseqiApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CChineseqiApp object
CChineseqiApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CChineseqiApp initialization
BOOL CChineseqiApp::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
// 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.
// 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(CChineseqiDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CChineseqiView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
regsystem();
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
HICON hi=LoadIcon(IDR_MAINframe);
// The one and only window has been initialized so show and update it.
m_pMainWnd->SetWi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2114 2001-08-02 17:01 setupdlg.h
目录 0 2001-07-27 09:43 res\
文件 401 2001-06-11 13:26 res\chineseqi.rc2
文件 1078 2001-06-11 13:26 res\chineseqiDoc.ico
文件 1078 2001-07-03 11:48 res\chineseqi.ico
文件 39654 2001-06-14 16:33 res\bkmp.bmp
文件 3834 2001-06-11 20:05 res\redbin.bmp
文件 3834 2001-06-11 20:05 res\redma.bmp
文件 3834 2001-06-11 20:05 res\redpao.bmp
文件 3834 2001-06-11 20:05 res\redsuai.bmp
文件 3834 2001-06-11 20:05 res\redxiang.bmp
文件 3834 2001-06-11 20:05 res\redzhu.bmp
文件 3834 2001-06-11 20:05 res\redshi.bmp
文件 3834 2001-06-11 20:28 res\blackma.bmp
文件 3834 2001-06-11 20:28 res\blackbin.bmp
文件 3834 2001-06-11 20:28 res\blackjiang.bmp
文件 3834 2001-06-11 20:28 res\blackpao.bmp
文件 3834 2001-06-11 20:28 res\blackshi.bmp
文件 3834 2001-06-11 20:28 res\blackzhu.bmp
文件 3834 2001-06-11 20:28 res\blackxiang.bmp
文件 53314 2001-06-11 18:50 res\MAINboard.bmp
文件 335142 2001-06-14 18:36 res\board1.bmp
文件 335576 2001-06-11 19:33 res\bitmap1.bmp
文件 766 2001-06-12 17:20 res\Busy_1.cur
文件 326 2001-06-12 17:20 res\Icr_hand.cur
文件 766 1998-04-24 00:00 res\WAIT07.CUR
文件 11558 2001-06-14 13:22 res\jiang.bmp
文件 766 2001-06-13 15:39 res\H_point.cur
文件 766 2001-07-03 13:18 res\H_move.cur
文件 24330 2001-06-15 18:24 res\muban.bmp
文件 41747 1998-07-08 14:35 res\KAli
............此处省略48个文件信息
评论
共有 条评论