ddraw.h是什么?

ty263 2006-04-08 07:08:06
我在visual studio 2005中编译项目,被提示:
-------------------------------------------
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\strmif.h(21826) : fatal error C1083: Cannot open include file: 'ddraw.h': No such file or directory
-------------------------------------------

不解,请教。
谢谢噢!!
...全文
1287 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
enaking 2006-10-06
  • 打赏
  • 举报
回复
你看你的包含头文件是不是被改过,和你本身的头文件名字不相符
NaZiChong 2006-10-06
  • 打赏
  • 举报
回复
DirectDraw has been deprecated by Microsoft and the headers are no longer included by default with Visual Studio 2005. If you get an error about being unable to find ddraw.h then you need to install the latest DirectX SDK (Dec 2005 or greater is compatible with VS 2005).

If you still have missing headers (perhaps “amvideo.h” from DirectShow) you then need to install an updated Platform SDK too.


These files do still exist: but we have somewhat componentized the PSDK. For example: ddraw.h is part of the DirectX SDK so you may need to download this SDK as well as the core Platform SDK.

Here is a link to the main PSDK download page:

http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
angel_rabbit 2006-04-11
  • 打赏
  • 举报
回复
装个DirectX 8.0 SDK ,然后编译一下BaseClasses,再编译你的程序!
注意include ,lib的指向.
Houseman 2006-04-09
  • 打赏
  • 举报
回复
可以说一下你编译的是一个什么程序吗?strmif.h是VS2005安装时就有的,#include<ddraw.h>是这个文件里的一句,按理讲不应该出现这样的问题啊!
fangzhe 2006-04-08
  • 打赏
  • 举报
回复
那个是for Smartphone的
DirectX Redist是没有开发部分的,要安装DirectX SDK啊
ty263 2006-04-08
  • 打赏
  • 举报
回复
我刚才在c盘下搜了一下,在C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\Smartphone2003\Include下有一个ddraw.h文件,这个行不行啊?
谢谢噢!!
ty263 2006-04-08
  • 打赏
  • 举报
回复
directx9.0的exe文件我装过了,找不到。我是不是还要装其他的directx包呢?
谢谢!!!
Houseman 2006-04-08
  • 打赏
  • 举报
回复
ddraw.h 是directx中directdraw组件的头文件.

7,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧