资源简介
拼图小游戏,用 directX做的拼图小游戏 vc2008

代码片段和文件信息
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// File: hello.cpp
//
// Author: Frank Luna (C) All Rights Reserved
//
// System: AMD Athlon 1800+ XP 512 DDR Geforce 3 Windows XP MSVC++ 7.0
//
// Desc: Demonstrates creating a Windows application.
//
//////////////////////////////////////////////////////////////////////////////////////////////////
// Include the windows header file this has all the
// Win32 API structures types and function declarations
// we need to program Windows.
#include
// The main window handle. This is used to identify
// the main window we are going to create.
HWND MainWindowHandle = 0;
// Wraps the code necessary to initialize a windows
// application. Function returns true if initialization
// was successful else it returns false.
bool InitWindowsApp(HINSTANCE instanceHandle int show);
// Wraps the message loop code.
int Run();
// The window procedure handles events our window
// receives.
LRESULT CALLBACK WndProc(HWND hWnd
UINT msg
WPARAM wParam
LPARAM lParam);
// Windows equivalant to main()
int WINAPI WinMain(HINSTANCE hInstance
HINSTANCE hPrevInstance
PSTR pCmdLine
int nShowCmd)
{
// First we create and initialize our Windows
// application. Notice we pass the application
// hInstance and the nShowCmd from WinMain as
// parameters.
if(!InitWindowsApp(hInstance nShowCmd))
{
::MessageBox(0 “Init - Failed“ “Error“ MB_OK);
return 0;
}
// Once our application has been created and
// initialized we enter the message loop. We
// stay in the message loop until a WM_QUIT
// mesage is received indicating the application
// should be terminated.
return Run(); // enter message loop
}
bool InitWindowsApp(HINSTANCE instanceHandle int show)
{
// The first task to creating a window is to describe
// its characteristics by filling out a WNDCLASS
// structure.
WNDCLASS wc;
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = instanceHandle;
wc.hIcon = ::LoadIcon(0 IDI_APPLICATION);
wc.hCursor = ::LoadCursor(0 IDC_ARROW);
wc.hbrBackground =
static_cast(::GetStockobject(WHITE_BRUSH));
wc.lpszMenuName = 0;
wc.lpszClassName = “Hello“;
// Then we register this window class description
// with Windows so that we can create a window based
// on that description.
if(!::RegisterClass(&wc))
{
::MessageBox(0 “RegisterClass - Failed“ 0 0);
return false;
}
// With our window class description registered we
// can create a window with the CreateWindow function.
// Note this function returns a HWND to the created
// window which we save in MainWindowHandle. Through
// MainWindowHan
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 474 2010-04-14 10:19 main\7week-code\Block.h
....... 1538 2006-05-07 02:01 main\7week-code\image.txt
文件 2756 2010-04-14 09:19 main\7week-code\main.cpp
文件 196662 2010-04-14 09:39 main\7week-code\test.bmp
文件 47616 2010-05-08 15:27 main\Debug\main.exe
文件 475432 2010-05-08 15:27 main\Debug\main.ilk
文件 543744 2010-05-08 15:27 main\Debug\main.pdb
文件 5384 2003-03-09 13:10 main\hello.cpp
文件 1748 2010-05-08 12:01 main\main\Block.h
文件 1607 2010-05-08 15:10 main\main\CList.cpp
文件 534 2010-05-08 15:10 main\main\CList.h
文件 8910 2010-05-08 15:27 main\main\Debug\BuildLog.htm
文件 12786 2010-05-08 15:10 main\main\Debug\CList.obj
文件 663 2010-05-06 19:01 main\main\Debug\main.exe.em
文件 728 2010-05-06 19:01 main\main\Debug\main.exe.em
文件 621 2010-05-08 15:27 main\main\Debug\main.exe.intermediate.manifest
文件 56206 2010-05-08 15:27 main\main\Debug\main.obj
文件 66 2010-05-08 15:27 main\main\Debug\mt.dep
文件 478208 2010-05-08 15:27 main\main\Debug\vc90.idb
文件 126976 2010-05-08 15:27 main\main\Debug\vc90.pdb
文件 5384 2003-03-09 13:10 main\main\hello.cpp
....... 1538 2006-05-07 02:01 main\main\image.txt
文件 10448 2010-05-08 15:27 main\main\main.cpp
文件 4168 2010-05-08 14:34 main\main\main.vcproj
文件 1421 2010-05-06 20:27 main\main\main.vcproj.AirStock.Qingbing.user
文件 1415 2010-05-08 15:30 main\main\main.vcproj.K-AIR.QingBing.user
文件 1417 2010-04-15 18:33 main\main\main.vcproj.STD-06.std-06.user
....... 5170 2010-04-15 18:14 main\main\Release\BuildLog.htm
文件 19456 2010-04-15 18:14 main\main\Release\vc90.idb
文件 45056 2010-04-15 18:14 main\main\Release\vc90.pdb
............此处省略14个文件信息
- 上一篇:信息检索导论英文版答案
- 下一篇:lame 源码 mp3编码库
相关资源
- Windows异步套接字网络编程
- VC 获得文件属性 获取文件的创建时
- 基于MVC模式的会员管理系统
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- vc 柱形图 CBarChart
- 用vc 写的导线测量,针对刚学测绘的
- 用VC 编写的仿QQ聊天室程序源代码
- 栅栏填充算法源码(VC)
- 简单的房屋租赁系统
- .net网站服装销售系统(MVC)
-
ob
jectARX给Auto CAD加工具条 - blowfish的vc2008工程.rar
- 画图程序MFC/VC/VC CRectTracker 串行化
- capon波束形成算法-VC实现
- 读取串口数据并画实时曲线的VC 程序
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- keil vcom windows 7 64bit 驱动
- vc URL编解码类
- vc编写中国象棋详细源码注释并附有视
- VC 围棋源代码
- 用VC 编写的基于SNMP的路由器拓扑程序
- vc利用MFC底层开发的二维GIS管理软件,
- 兰勃托地图投影VC源码
- 清华大学郑莉C 语言程序设计课件
评论
共有 条评论