资源简介
基于VC6的MFC框架开发的贪吃蛇游戏,可计分可更改移动速度。

代码片段和文件信息
// GreedyWorm.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “GreedyWorm.h“
#include “MainFrm.h“
#include “GreedyWormDoc.h“
#include “GreedyWormView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGreedyWormApp
BEGIN_MESSAGE_MAP(CGreedyWormApp CWinApp)
//{{AFX_MSG_MAP(CGreedyWormApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CGreedyWormApp construction
CGreedyWormApp::CGreedyWormApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CGreedyWormApp object
CGreedyWormApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CGreedyWormApp initialization
BOOL CGreedyWormApp::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(CGreedyWormDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CGreedyWormView));
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->ShowW
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-01-10 09:27 GreedyWorm\
目录 0 2018-01-10 09:27 GreedyWorm\Debug\
文件 5096448 2018-01-10 08:59 GreedyWorm\Debug\GreedyWorm.bsc
文件 122948 2018-01-10 08:59 GreedyWorm\Debug\GreedyWorm.exe
文件 434772 2018-01-10 08:59 GreedyWorm\Debug\GreedyWorm.ilk
文件 23440 2018-01-09 21:50 GreedyWorm\Debug\GreedyWorm.obj
文件 6932716 2018-01-09 15:23 GreedyWorm\Debug\GreedyWorm.pch
文件 500736 2018-01-10 08:59 GreedyWorm\Debug\GreedyWorm.pdb
文件 7608 2018-01-10 08:59 GreedyWorm\Debug\GreedyWorm.res
文件 0 2018-01-09 21:50 GreedyWorm\Debug\GreedyWorm.sbr
文件 14890 2018-01-09 15:23 GreedyWorm\Debug\GreedyWormDoc.obj
文件 0 2018-01-09 15:23 GreedyWorm\Debug\GreedyWormDoc.sbr
文件 34073 2018-01-10 08:59 GreedyWorm\Debug\GreedyWormView.obj
文件 0 2018-01-10 08:59 GreedyWorm\Debug\GreedyWormView.sbr
文件 19892 2018-01-09 15:23 GreedyWorm\Debug\MainFrm.obj
文件 0 2018-01-09 15:23 GreedyWorm\Debug\MainFrm.sbr
文件 105622 2018-01-09 15:23 GreedyWorm\Debug\StdAfx.obj
文件 1375184 2018-01-09 15:23 GreedyWorm\Debug\StdAfx.sbr
文件 222208 2018-01-10 08:59 GreedyWorm\Debug\vc60.idb
文件 372736 2018-01-10 08:59 GreedyWorm\Debug\vc60.pdb
文件 29044 2018-01-09 23:19 GreedyWorm\GreedyWorm.aps
文件 2347 2018-01-09 23:19 GreedyWorm\GreedyWorm.clw
文件 4350 2018-01-09 10:30 GreedyWorm\GreedyWorm.cpp
文件 4640 2018-01-09 14:29 GreedyWorm\GreedyWorm.dsp
文件 528 2018-01-09 10:17 GreedyWorm\GreedyWorm.dsw
文件 1400 2018-01-09 10:17 GreedyWorm\GreedyWorm.h
文件 66560 2018-01-10 09:26 GreedyWorm\GreedyWorm.ncb
文件 49664 2018-01-10 09:26 GreedyWorm\GreedyWorm.opt
文件 1614 2018-01-10 08:59 GreedyWorm\GreedyWorm.plg
文件 11731 2018-01-10 08:59 GreedyWorm\GreedyWorm.rc
文件 1822 2018-01-09 10:17 GreedyWorm\GreedyWormDoc.cpp
............此处省略15个文件信息
- 上一篇:MFC vc++ 指针时钟 闹钟,非常好用。
- 下一篇:图书管理系统VC6 MFC
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- 移木块游戏,可以自编自玩,vc6.0编写
- MFC数字钟(基于VC6.0)
- 安科瑞智能电能表MODBUS通讯程序 VC6
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC6LineNumberAddin.dll
- 用VC6.0实现多边形扫描线填充算法
- VC助手 VC6.0助手
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- c++ 简易贪吃蛇源码
- VC6 USB开发源码
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- 贪吃蛇大作战(c源码+报告文档)
- 吕鑫vc6c++数据结构视频源码
- C语言ege贪吃蛇游戏
- C++贪吃蛇控制台小游戏代码
- MFC五子棋游戏
- 彩色贪吃蛇.c
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
评论
共有 条评论