游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2054|回复: 4

有大侠看过这本电子书么?[Advanced 3D Game Programming with Dire

[复制链接]

5

主题

17

帖子

17

积分

新手上路

Rank: 1

积分
17
发表于 2005-12-23 02:50:00 | 显示全部楼层 |阅读模式
最后那个游戏编译的时候缺少一个stdafx.h文件,有大侠自己写出来了么?
能不能mail 一个或者放在楼下?
我的mail地址:achesnut@126.com

7

主题

299

帖子

305

积分

中级会员

Rank: 3Rank: 3

积分
305
发表于 2005-12-23 10:40:00 | 显示全部楼层

Re:有大侠看过这本电子书么?[Advanced 3D Game Programming with D

/*******************************************************************
*         Advanced 3D Game Programming using DirectX 9.0
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* copyright (c) 2003 by Peter A Walsh and Adrian Perez
* See license.txt for modification and distribution information
******************************************************************/
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__9C89AC16_48BC_11D3_B2BB_00C04F685D9A__INCLUDED_)
#define AFX_STDAFX_H__9C89AC16_48BC_11D3_B2BB_00C04F685D9A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WIN32_LEAN_AND_MEAN                // Exclude rarely-used stuff from Windows headers
#define STRICT

// TODO: reference additional headers your program requires here

/**
* warning C4786: <some extremely long name> :
* identifier was truncated to '255' characters in the
* debug information
*/
#pragma warning( disable : 4786 )  

// Network header files (must be included before windows.h)
#include "..\NetLib\MTUDP.h"

// Windows Header Files:
#include <windows.h>
#include <mmsystem.h>

#include <d3d9.h>
#include <d3dx9.h>
#include <dsound.h>
#include <dinput.h>

// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <assert.h>

// Local Header Files
#include "..\math3d\point3.h"
#include "..\math3d\matrix4.h"
#include "..\math3d\point3.h"
#include "..\math3d\mathd3d.h"
#include "..\math3d\plane3.h"
#include "..\math3d\polygon.h"
#include "..\math3d\tri.h"

#include "..\gamelib\GameGlobals.h"
#include "..\gamelib\GameErrors.h"
#include "..\gamelib\GameInterfaces.h"
#include "..\gamelib\GameTypes.h"
#include "..\gamelib\File.h"
#include "..\gamelib\Application.h"
#include "..\gamelib\Window.h"
#include "..\gamelib\GraphicsLayer.h"
#include "..\gamelib\model.h"
#include "..\gamelib\texture.h"
#include "..\gamelib\Keyboard.h"
#include "..\gamelib\Mouse.h"
#include "..\gamelib\InputLayer.h"
#include "..\gamelib\SoundLayer.h"
#include "..\gamelib\Sound.h"
#include "..\gamelib\DxHelper.h"

#include "..\NetLib\cDataExtract.h"
#include "..\NetLib\cDataCompress.h"
#include "..\NetLib\cNetError.h"

#include "..\GameCommon\gamecell.h"
#include "..\GameCommon\gameworld.h"
#include "..\GameCommon\MsgDaemon.h"
#include "..\GameCommon\Ents\GamePlayerEnt.h"
#include "..\GameCommon\Ents\GameSpawnEnt.h"
#include "..\GameCommon\Ents\GameParaEnt.h"
#include "..\GameCommon\Ents\GameProjEnt.h"

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__9C89AC16_48BC_11D3_B2BB_00C04F685D9A__INCLUDED_)

7

主题

299

帖子

305

积分

中级会员

Rank: 3Rank: 3

积分
305
发表于 2005-12-23 10:40:00 | 显示全部楼层

Re:有大侠看过这本电子书么?[Advanced 3D Game Programming with D

试试看,复制过去

7

主题

82

帖子

110

积分

注册会员

Rank: 2

积分
110
QQ
发表于 2005-12-26 21:58:00 | 显示全部楼层

Re:有大侠看过这本电子书么?[Advanced 3D Game Programming with D

stdafx.h是预编译头文件,在编译选项里选择不使用预编译头文件即可

5

主题

17

帖子

17

积分

新手上路

Rank: 1

积分
17
 楼主| 发表于 2006-1-31 20:22:00 | 显示全部楼层

十分感谢YoungSdikode的帮助!

新年快乐!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-23 09:19

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表