Getting the current DirectX version???

Started by
1 comment, last by illuna 24 years, 5 months ago
I don't know of any other function, but if possible, you should consider handling DX version differences through COM and QueryInterface.

It works like this - you decide the absolute minimum version of DirectX you'll support. In the code, you request the corresponding IIDs for this version. Then, to use later versions, you use QueryInterface() to grab the new IIDs you want. If QueryInterface() fails, you fallback on the old IID... if it succeeds, you throw away the old IID and use the new IID.

Just a suggestion.

Mason McCuskey
Spin Studios
www.spin-studios.com

Founder, Cuttlefish Industries
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
Advertisement
I'm trying to find a function that returns the version number of DirectX currently installed on a computer. In fact, I must also check if it IS installed.

I already found the DirectXSetupGetVersion() function which do exacly what I need but unfortunatly, I can't use it. Is there an other way to do it????

Thanks for your help!
Illuna

Hello illuna

Why do you can't use DirectXSetupGetVersion ?
The way mason describes is possible but you should use DirectXSetupGetVersion.

VirtualNext

This topic is closed to new replies.

Advertisement