資源簡介
vc++ 游戲開發經典案例詳解 源代碼
五子棋 連連看 貪吃蛇 黑白棋 掃雷等經典游戲代碼
代碼片段和文件信息
//?BoxMan.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“BoxMan.h“
#include?“BoxManDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBoxManApp
BEGIN_MESSAGE_MAP(CBoxManApp?CWinApp)
//{{AFX_MSG_MAP(CBoxManApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CBoxManApp?construction
CBoxManApp::CBoxManApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBoxManApp?object
CBoxManApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBoxManApp?initialization
BOOL?CBoxManApp::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
CBoxManDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36444??2009-11-18?13:56??本書源文件\BoxMan\BoxMan.aps
?????文件???????1938??2009-11-18?14:28??本書源文件\BoxMan\BoxMan.clw
?????文件???????2063??2009-11-16?13:56??本書源文件\BoxMan\BoxMan.cpp
?????文件???????4453??2009-11-16?15:32??本書源文件\BoxMan\BoxMan.dsp
?????文件????????537??2009-11-16?15:32??本書源文件\BoxMan\BoxMan.dsw
?????文件???????1324??2009-11-16?13:56??本書源文件\BoxMan\BoxMan.h
?????文件??????99328??2009-11-18?15:07??本書源文件\BoxMan\BoxMan.ncb
?????文件??????55808??2009-11-18?15:07??本書源文件\BoxMan\BoxMan.opt
?????文件????????736??2009-11-18?15:05??本書源文件\BoxMan\BoxMan.plg
?????文件???????6622??2009-11-18?13:56??本書源文件\BoxMan\BoxMan.rc
?????文件??????16417??2009-11-18?14:32??本書源文件\BoxMan\BoxManDlg.cpp
?????文件???????2322??2009-11-18?11:33??本書源文件\BoxMan\BoxManDlg.h
?????文件????????990??2009-11-16?15:03??本書源文件\BoxMan\HelpDlg.cpp
?????文件???????1194??2009-11-16?15:03??本書源文件\BoxMan\HelpDlg.h
?????文件???????3579??2009-11-16?13:56??本書源文件\BoxMan\ReadMe.txt
?????文件???????1101??2009-11-16?15:11??本書源文件\BoxMan\Resource.h
?????文件???????1309??2009-11-18?10:41??本書源文件\BoxMan\SelectDlg.cpp
?????文件???????1243??2009-11-18?10:39??本書源文件\BoxMan\SelectDlg.h
?????文件????????208??2009-11-16?13:56??本書源文件\BoxMan\StdAfx.cpp
?????文件???????1101??2009-11-17?10:54??本書源文件\BoxMan\StdAfx.h
?????文件??????10825??2009-11-18?14:25??本書源文件\BoxMan\Debug\map.txt
?????文件????2346000??2009-06-27?12:19??本書源文件\BoxMan\Debug\music.wav
?????文件????????132??2005-06-02?12:43??本書源文件\BoxMan\Debug\notice.txt
?????文件?????????20??2009-11-17?10:41??本書源文件\BoxMan\Debug\setup.ini
?????文件???????1078??2009-11-18?13:56??本書源文件\BoxMan\res\BoxMan.ico
?????文件????????398??2009-11-16?13:56??本書源文件\BoxMan\res\BoxMan.rc2
????..A..H.??????3072??2010-04-06?15:39??本書源文件\BoxMan\res\Thumbs.db
?????文件???????3898??2009-03-27?11:24??本書源文件\C03\Demo1\Demo1.dsp
?????文件????????534??2009-04-01?16:27??本書源文件\C03\Demo1\Demo1.dsw
?????文件??????41984??2009-05-08?10:44??本書源文件\C03\Demo1\Demo1.ncb
............此處省略584個文件信息
評論
共有 條評論