Solved

DirectX Colors Failed!!!

Posted on 2000-04-11
4
539 Views
Last Modified: 2013-12-03
I tried to query the primary surface for DirectDraw ColorControls:

LPDIRECTDRAWCOLORCONTROL lpColorControl;
LPDIRECTDRAWSURFACE7 lpPrimary;

lpPrimary->QueryInterface(IID_IDirectDrawCOlorControl, (VOID**)&lpColorControl);

So my error is that the query interface fails! meaning there is no interface...
How is that possible when it is a omnipresent capability in each video card?
0
Comment
Question by:volcano79
[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
  • 2
4 Comments
 
LVL 3

Expert Comment

by:GlennDean
ID: 2706609
I would get the HRESULT return code from QI and then use FormatMessage to see exactly why it failed.
   Glenn
0
 
LVL 4

Accepted Solution

by:
nils pipenbrinck earned 10 total points
ID: 2707485
your code is correct.

your driver simply doesn't implement this feature.. even if your vga might support the stuff.

So.. bad luck for you.

(btw. I wonder how a vga card should implement the saturation/hue settings.. that sound like a lot of video postprocessing for me).

Nils

P.S. 10 point question, 10 point answer :)
0
 

Author Comment

by:volcano79
ID: 2710506
My card is RIVA TNT, generation one, with nVidia chip in it. Hence, my driver is also nVidia one. And I suppose it is a reputable one to include such a feature inside? Could it be the card's problem rather than the driver problem?
0
 
LVL 4

Expert Comment

by:nils pipenbrinck
ID: 2711884
I also have a RIVA TNT in my machine at home (and a TNT2 here at the office). The drivers are great. They support most of the DirectX and Direct3D features, but not all.

Gamma and Color Control are two of them. Other features that are not supported are for example DDraw Blitting with Win32 ROP operations and other rarely used stuff.

Again.. I'm pretty sure that your code would work if your driver would support the ColorControl interface. The TNT hardware however is not able to change the hue or saturation of the output signal... Gamma is theoretical possible because the gdi drivers support it.

Nils
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
link access with Quickbooks 9 67
Windows Drag & Drop Location 2 112
Issue when running a SSIS package (.dts) from an SQL job 21 84
Mobile apps - web/native or hybrid? 1 75
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…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…

730 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