游戏开发论坛

 找回密码
 立即注册
搜索
查看: 979|回复: 0

DirectDraw surfaces and IDirectDrawMediaStream

[复制链接]

7

主题

36

帖子

38

积分

注册会员

Rank: 2

积分
38
发表于 2006-12-22 10:22:00 | 显示全部楼层 |阅读模式
I have a DirectDraw application that need to use the IDirectDrawMediaStream interface (to display a video in a surface).
I use some DIRECTDRAWSURFACE7 in all the appli, but IDirectDrawMediaStream::CreateSample wants a DIRECTDRAWSURFACE.
I tried to cast my LPDIRECTDRAWSURFACE into a LPDIRECTDRAWSURFACE, but CreateSample returns 0x80070057 (invalid parameter).

How to convert a surface7 into a surface ?
[em24] [em24]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-26 03:13

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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