資源簡介
基于VC++6.0 MFC俄羅斯方塊的游戲設計代碼,且內含課程設計報告.
代碼片段和文件信息
//?ELSblock.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ELSblock.h“
#include?“MainFrm.h“
#include?“ELSblockDoc.h“
#include?“ELSblockView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CELSblockApp
BEGIN_MESSAGE_MAP(CELSblockApp?CWinApp)
//{{AFX_MSG_MAP(CELSblockApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CELSblockApp?construction
CELSblockApp::CELSblockApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CELSblockApp?object
CELSblockApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CELSblockApp?initialization
BOOL?CELSblockApp::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(CELSblockDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CELSblockView));
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;
}
////////////////////////////////////////////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????453??2009-11-26?19:21??俄羅斯方塊(內含課程設計報告)\ELSblock\Block.h
?????文件?????884839??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblock.exe
?????文件?????331192??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblock.ilk
?????文件??????22879??2009-11-28?11:05??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblock.obj
?????文件????5494688??2009-11-26?19:21??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblock.pch
?????文件?????517120??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblock.pdb
?????文件?????635848??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblock.res
?????文件??????15255??2009-11-26?23:12??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblockDoc.obj
?????文件??????45960??2017-12-05?13:11??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\ELSblockView.obj
?????文件??????19974??2009-11-28?11:24??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\MainFrm.obj
?????文件?????105508??2009-11-26?19:21??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\StdAfx.obj
?????文件?????222208??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\vc60.idb
?????文件?????389120??2017-12-05?13:10??俄羅斯方塊(內含課程設計報告)\ELSblock\Debug\vc60.pdb
?????文件?????673464??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.aps
?????文件???????2327??2017-12-05?18:39??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.clw
?????文件???????4150??2009-11-26?18:08??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.cpp
?????文件???????4719??2009-11-28?18:37??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.dsp
?????文件????????524??2009-11-26?18:08??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.dsw
?????文件???????1378??2009-11-26?18:08??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.h
?????文件?????123904??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.ncb
?????文件??????50688??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.opt
?????文件????????940??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.plg
?????文件??????11784??2017-12-05?18:40??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblock.rc
?????文件???????1770??2009-11-26?22:57??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblockDoc.cpp
?????文件???????1383??2009-11-26?22:57??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblockDoc.h
?????文件??????15107??2009-12-01?13:20??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblockView.cpp
?????文件???????3110??2009-12-01?13:05??俄羅斯方塊(內含課程設計報告)\ELSblock\ELSblockView.h
?????文件???????2641??2009-11-28?11:24??俄羅斯方塊(內含課程設計報告)\ELSblock\MainFrm.cpp
?????文件???????1440??2009-11-26?23:13??俄羅斯方塊(內含課程設計報告)\ELSblock\MainFrm.h
?????文件???????4359??2009-11-26?18:08??俄羅斯方塊(內含課程設計報告)\ELSblock\ReadMe.txt
............此處省略25個文件信息
- 上一篇:psins導航算法源碼C語言、matlab
- 下一篇:寵物領養c++ 控制臺界面
評論
共有 條評論