资源简介
我大学时候设计的一个最最简单的mfc坦克大战,适合最最最最最基础的人群,C++实现一个小demo,适合初级玩家试试水

代码片段和文件信息
// 122055116.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “122055116.h“
#include “MainFrm.h“
#include “122055116Doc.h“
#include “122055116View.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMy122055116App
BEGIN_MESSAGE_MAP(CMy122055116App CWinApp)
//{{AFX_MSG_MAP(CMy122055116App)
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()
/////////////////////////////////////////////////////////////////////////////
// CMy122055116App construction
CMy122055116App::CMy122055116App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMy122055116App object
CMy122055116App theApp;
/////////////////////////////////////////////////////////////////////////////
// CMy122055116App initialization
BOOL CMy122055116App::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(CMy122055116Doc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CMy122055116View));
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_pMainWn
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1385840 2014-10-29 20:08 122055116\122055116.aps
文件 2356 2014-10-29 20:08 122055116\122055116.clw
文件 4302 2014-06-20 11:02 122055116\122055116.cpp
文件 5169 2014-06-20 22:47 122055116\122055116.dsp
文件 543 2014-06-15 17:41 122055116\122055116.dsw
文件 1399 2014-06-15 17:29 122055116\122055116.h
文件 99328 2014-10-29 20:36 122055116\122055116.ncb
文件 54784 2014-10-29 20:36 122055116\122055116.opt
文件 913 2014-10-29 20:08 122055116\122055116.plg
文件 12102 2014-10-29 20:08 122055116\122055116.rc
文件 1836 2014-06-15 17:29 122055116\122055116Doc.cpp
文件 1522 2014-06-15 17:29 122055116\122055116Doc.h
文件 6260 2014-06-21 22:39 122055116\122055116View.cpp
文件 2008 2014-06-21 10:20 122055116\122055116View.h
文件 1736757 2014-10-29 20:08 122055116\Debug\122055116.exe
文件 321848 2014-10-29 20:08 122055116\Debug\122055116.ilk
文件 23096 2014-06-21 10:20 122055116\Debug\122055116.obj
文件 5498748 2014-06-15 17:39 122055116\Debug\122055116.pch
文件 492544 2014-10-29 20:08 122055116\Debug\122055116.pdb
文件 1348216 2014-10-29 20:08 122055116\Debug\122055116.res
文件 14820 2014-06-15 17:39 122055116\Debug\122055116Doc.obj
文件 29596 2014-10-26 11:30 122055116\Debug\122055116View.obj
文件 7083 2014-06-20 23:10 122055116\Debug\Game.obj
文件 19760 2014-06-15 17:39 122055116\Debug\MainFrm.obj
文件 105471 2014-06-15 17:39 122055116\Debug\StdAfx.obj
文件 214016 2014-10-29 20:08 122055116\Debug\vc60.idb
文件 364544 2014-10-26 11:30 122055116\Debug\vc60.pdb
文件 723 2014-06-20 23:10 122055116\Game.cpp
文件 619 2014-06-20 22:41 122055116\Game.h
文件 2510 2014-06-15 17:29 122055116\MainFrm.cpp
............此处省略21个文件信息
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- 猜数字游戏 c语言代码
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- MFC数字钟(基于VC6.0)
- LINUX下命令行界面的C语言细胞游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 用C语言实现的一个打字游戏
- C语言版3D魔方游戏源代码
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- 打飞机小游戏57466
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- 俄罗斯方块游戏源码(Tetris)
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- c++ 猜拳小游戏
- 扫雷游戏.cpp
- 杨中科游戏开发引擎
- 智商超高的中国象棋游戏源码(C++版
- c++ 扫雷游戏源码(控制台)
- C++跑跑卡丁车
- C++“倒忌时”小游戏
- XX游戏客户端源码
评论
共有 条评论