游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4757|回复: 8

请教win7里双头显卡directdraw不能显示的问题

[复制链接]

10

主题

85

帖子

111

积分

注册会员

Rank: 2

积分
111
QQ
发表于 2010-5-26 17:27:00 | 显示全部楼层 |阅读模式
请教win7里双头显卡directdraw不能显示的问题
我在win7旗舰版x86里,双头显卡的副显示器上用窗口模式的directdraw显示,居然什么都没有显示出来
在xp里一切正常的,在win7里的主显示器上也正常
DirectDrawCreate的guid给的正确的
请教一下有没有什么好办法可以解决?

0

主题

398

帖子

577

积分

高级会员

Rank: 4

积分
577
发表于 2010-5-26 18:47:00 | 显示全部楼层

Re:请教win7里双头显卡directdraw不能显示的问题

我没文档, DirectDrawCreate 有一个 Adapter 参数吧?

10

主题

85

帖子

111

积分

注册会员

Rank: 2

积分
111
QQ
 楼主| 发表于 2010-5-26 19:26:00 | 显示全部楼层

Re:请教win7里双头显卡directdraw不能显示的问题

HRESULT WINAPI DirectDrawCreate(
  GUID FAR *lpGUID,        
  LPDIRECTDRAW FAR *lplpDD,  
  IUnknown FAR *pUnkOuter  
);

Parameters
lpGUID
Address of the globally unique identifier (GUID) that represents the driver to be created. This can be NULL to indicate the active display driver, or you can pass one of the following flags to restrict the active display driver's behavior for debugging purposes:
DDCREATE_EMULATIONONLY
The DirectDraw object uses emulation for all features; it does not take advantage of any hardware-supported features.
DDCREATE_HARDWAREONLY
The DirectDraw object never emulates features not supported by the hardware. Attempts to call methods that require unsupported features fail, returning DDERR_UNSUPPORTED.
lplpDD
Address of a variable to be set to a valid IDirectDraw interface pointer if the call succeeds.
pUnkOuter
Allows for future compatibility with COM aggregation features. Presently, however, this method returns an error if this parameter is anything but NULL.

11

主题

1238

帖子

1782

积分

金牌会员

Rank: 6Rank: 6

积分
1782
发表于 2010-5-27 09:14:00 | 显示全部楼层

Re:请教win7里双头显卡directdraw不能显示的问题

嘿嘿,是联想小Y本本吧!

0

主题

398

帖子

577

积分

高级会员

Rank: 4

积分
577
发表于 2010-5-27 09:57:00 | 显示全部楼层

Re:请教win7里双头显卡directdraw不能显示的问题

我错了,你自己找找吧,按照D3D的方式推测,应该有一个类似的 Adapter 参数来指定你的程序在哪个显示器.

45

主题

1163

帖子

1165

积分

金牌会员

Rank: 6Rank: 6

积分
1165
发表于 2010-5-27 10:39:00 | 显示全部楼层

Re:请教win7里双头显卡directdraw不能显示的问题

再过几年,全部抛弃directdraw,再过几年,全部抛弃d3d,再过几年,全部用光线跟踪!

10

主题

85

帖子

111

积分

注册会员

Rank: 2

积分
111
QQ
 楼主| 发表于 2010-5-27 20:20:00 | 显示全部楼层

Re:请教win7里双头显卡directdraw不能显示的问题

不是联想小本本,我是台式机
CPU:i7 920
显卡:七彩虹9800gt
主板:技嘉x58a

另一台技嘉g31的,显卡盈通9600gso
全不行

看来真不行就只能改D3D了,要全盘抛弃重新做,要大费周章了

362

主题

3023

帖子

3553

积分

论坛元老

Rank: 8Rank: 8

积分
3553
发表于 2010-5-27 23:32:00 | 显示全部楼层

Re: Re:请教win7里双头显卡directdraw不能显示的问题

czysoft: Re:请教win7里双头显卡directdraw不能显示的问题

不是联想小本本,我是台式机
CPU:i7 920
显卡:七彩虹9800gt
主板:技嘉x58a

另一台技嘉g31的,显卡盈通...


你不会封装啊

10

主题

85

帖子

111

积分

注册会员

Rank: 2

积分
111
QQ
 楼主| 发表于 2010-5-28 16:58:00 | 显示全部楼层

Re:请教win7里双头显卡directdraw不能显示的问题

封装什么?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-6-9 14:50

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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