Solved

DirectX IDirectDraw2

Posted on 1997-04-17
7
343 Views
Last Modified: 2013-12-04
IDirect2->SetDisplayMode has a parameter for the refresh rate. If I call this routine with anything besides 0 (which means don't use this parameter) I get the return value UNSUPPORTED. Is it possible, that not all drivers support this feature, and if so, which one does support it?
I tried EnumDisplayMode, it iterates correctly over the available modes, but the refresh rate returned was always 0.

Thanx,...
0
Comment
Question by:ahk
7 Comments
 

Expert Comment

by:kw040597
ID: 1334619
It seems that you should only use the data returned by IDirectDraw2::EnumDisplayModes, have you tried that yet?
0
 

Author Comment

by:ahk
ID: 1334620
And I tried EnumDisplayMode, the problem is, it returns all available modes correct, but with refresh 0 for every mode.

0
 

Author Comment

by:ahk
ID: 1334621
Edited text of question
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 15

Expert Comment

by:NickRepin
ID: 1334622
The IDirectDraw2::SetCooperativeLevel method must be used to set exclusive-level access before the mode can be changed.
0
 
LVL 15

Expert Comment

by:NickRepin
ID: 1334623
Do you use dwFlags=DDEDM_REFRESHRATES in call to
EnumDisplayModes() ?

0
 
LVL 2

Accepted Solution

by:
amartin030297 earned 100 total points
ID: 1334624
DirectDraw-2 does NOT officially support monitor-rate change in the mode settings... While the API supports the parameters to be passed, all DX-2 drivers ignore or return failure when values other than 0 are used.   DirectX-5 Beta-1 just shipped last week (write betareq@microsoft.com, subject: Directx to join).  
   Sorry for the bad news about dx-2...
             -- Aaron

0
 

Author Comment

by:ahk
ID: 1334625
Is there really no driver, which supports this mode?
The only thing, which is new with IDirect2 is the change of
refresh and if it doesn't work at all, what is it really for...

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 Scheduled Tasks 11 76
Asp.net Form view Pager Template First Record 2 70
GUI: DIalog Stacking and Popping in MS C++ 4 65
VS2015 Redefinition errors 4 27
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now