游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1347|回复: 1

使用ddutil.cpp时出现的问题

[复制链接]

6

主题

15

帖子

19

积分

新手上路

Rank: 1

积分
19
发表于 2007-7-29 00:04:00 | 显示全部楼层 |阅读模式
要用DirectDraw...需把ddutil.h,ddutil.cpp,dxutil.h,dxutil.cpp加入到工程中,加入后试对ddutil.cpp和dxutil.cpp单独进行编释,报错:
d:\vc++\dx\dxutil.cpp(1122) : fatal error C1010: unexpected end of file while looking for precompiled header directive

ddutil.cpp
d:\vc++\dx\ddutil.cpp(1032) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...

在网上找处理办法,有人说缺少包含stdafx.h文件,在dxutil.cpp中包含了该文件,单独编释dxutil.cpp时不报错了...
但在dxutil.cpp中包含了stdafx.h文件,报错行就多达100多个...去掉报:
d:\vc++\dx\ddutil.cpp(1032) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.

有人说在[Project]->[Setting]->[C/C++]->然後在 [Category] ??中??瘢?recompiled Headers ?目,然後??瘢?ot using precompiled headers 即可。
但我试了还不行,怎么办?
ddutil.cpp可是官方发布的,我没改过里面的代码呀...

6

主题

15

帖子

19

积分

新手上路

Rank: 1

积分
19
 楼主| 发表于 2007-7-31 10:14:00 | 显示全部楼层

Re: 使用ddutil.cpp时出现的问题

没人回答,顶...
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-25 15:42

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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