Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DirectX IDirectDraw2

Posted on 1997-04-17
7
Medium Priority
?
362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

721 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