Checking graphics card compatibility?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
asparagusx
Posts: 81
Joined: Thu Oct 16, 2008 6:50 am

Checking graphics card compatibility?

Post by asparagusx »

Hello

I need to be able to 'detect' if, on a target machine, directx (9 as an example) is correctly installed. I know all about using DxDiag, but I need to do this at runtime. Our application defaults to using DirectX 9 as the preferred driver type, but we are getting cases, where graphics drivers are out of date or incorrectly installed. When trying to use CreateDeviceEx, we often get BSD or exceptions if the system is not correctly configured. How we can determine (at runtime) if the system is configured for DirectX 9? I have tried using try and catch around CreateDeviceEx, but still getting problems on 'incorrect' systems.

Thanks

Asp
Lil Margin
Posts: 212
Joined: Sun Jul 19, 2009 4:24 am
Location: Netherlands Antilles, Curacao

Post by Lil Margin »

I don't know if you can do this with irrlicht but i think there is a function in the directx sdk that returns the version...
Post Reply