
How to get the DX Version
hi, maybe wrong forum but i don''t know any dx forum
So how can I get while runtime the dx Version? Because I use DInput with DX8 so when some has no dx8 i like to display an error message!
is ther some thing like glGetSring(GL_VERSION) ??

A DirectX forum ?
Check NeXe (NeHe DirectX-style) or simply the DirectX forum (both forums hosted by gamedev.net).
There's a bad, but efficient, way to force the user to run the application with DirectX 8 : just the compile your project with DX8 libraries !
When the applicaiton will run, if the end-user does not have DX8, a message will appear saying that DX8 dlls are not found
Edited by - vincoof on February 14, 2002 10:16:07 AM
Check NeXe (NeHe DirectX-style) or simply the DirectX forum (both forums hosted by gamedev.net).
There's a bad, but efficient, way to force the user to run the application with DirectX 8 : just the compile your project with DX8 libraries !
When the applicaiton will run, if the end-user does not have DX8, a message will appear saying that DX8 dlls are not found

Edited by - vincoof on February 14, 2002 10:16:07 AM
> There''s a bad, but efficient, way to force the user to run the application with DirectX 8 : just the compile your project with DX8 libraries !
That''s a very evil way. Especially if you only use DInput, AFAIK there is not much difference between DX7 and DX8 DInput. Doing it that way normally proves, that the programmer was too stupid or lazy to deal with version checks
But it *is* an effective way.
That''s a very evil way. Especially if you only use DInput, AFAIK there is not much difference between DX7 and DX8 DInput. Doing it that way normally proves, that the programmer was too stupid or lazy to deal with version checks

But it *is* an effective way.
Hey no problems! If you can't find another forum I spose it's ok 
Ok, if you want to check which version of DirectInput they have check DIRECTINPUT_VERSION (ie if(DIRECTINPUT_VERSION != 0x0800)). The following was ripped out of the DirectInput header file (dinput.h):
/*
* To build applications for older versions of DirectInput
*
* #define DIRECTINPUT_VERSION [ 0x0300 | 0x0500 | 0x0700 ]
*
* before #include <dinput.h>. By default, #include <dinput.h>
* will produce a DirectX 8-compatible header file.
*
*/
That's pretty cool IMHO! I hope that's what you're looking for. I hope it is coz if you were looking for us to say "Just check whether dinput.dll exists" or "Check the version of dinput.dll" then what you want is a win32 forum
Hope that helps m8!
-------- E y e .Scream Software --------
----------------------------------------
/-\
http://www.eyescream.cjb.net | * |
\-/
----------------------------------------
Edited by - TheGilb on February 14, 2002 12:36:13 PM

Ok, if you want to check which version of DirectInput they have check DIRECTINPUT_VERSION (ie if(DIRECTINPUT_VERSION != 0x0800)). The following was ripped out of the DirectInput header file (dinput.h):
/*
* To build applications for older versions of DirectInput
*
* #define DIRECTINPUT_VERSION [ 0x0300 | 0x0500 | 0x0700 ]
*
* before #include <dinput.h>. By default, #include <dinput.h>
* will produce a DirectX 8-compatible header file.
*
*/
That's pretty cool IMHO! I hope that's what you're looking for. I hope it is coz if you were looking for us to say "Just check whether dinput.dll exists" or "Check the version of dinput.dll" then what you want is a win32 forum

Hope that helps m8!
-------- E y e .Scream Software --------
----------------------------------------
/-\
http://www.eyescream.cjb.net | * |
\-/
----------------------------------------
Edited by - TheGilb on February 14, 2002 12:36:13 PM
Hi,
I''m trying to convert lesson23 to dx8. I the first thing I tried was
#define DIRECTINPUT_VERSION [ 0x0300 | 0x0500 | 0x0700 ]
*
* before #include <dinput.h>. By default, #include <dinput.h>
* will produce a DirectX 8-compatible header file.
But it produced an error something to the affect of
invalid constant in the dinput.h header file.
The next thing I tried was to convert all the dx7 statements to dx8. I got it to compile but it asks for window or fullscreen and then blows away without doing anything.
Where from here??
I''m trying to convert lesson23 to dx8. I the first thing I tried was
#define DIRECTINPUT_VERSION [ 0x0300 | 0x0500 | 0x0700 ]
*
* before #include <dinput.h>. By default, #include <dinput.h>
* will produce a DirectX 8-compatible header file.
But it produced an error something to the affect of
invalid constant in the dinput.h header file.
The next thing I tried was to convert all the dx7 statements to dx8. I got it to compile but it asks for window or fullscreen and then blows away without doing anything.
Where from here??
TheGilb : DIRECTINPUT_VERSION is a compile-time check. Downgrading the version will allow to use an elder version of DirectX but I think what glnefugio wants is using DirectX8, and use a run-time check to warn the user if DX8 is not available on the end-user configuration.
j p, try:
#define DIRECTINPUT_VERSION 0x0700
#include <dinput.h>
-------- E y e .Scream Software --------
----------------------------------------
/-\
http://www.eyescream.cjb.net | * |
\-/
----------------------------------------
#define DIRECTINPUT_VERSION 0x0700
#include <dinput.h>
-------- E y e .Scream Software --------
----------------------------------------
/-\
http://www.eyescream.cjb.net | * |
\-/
----------------------------------------
This question is very pointless.
1: Windows XP comes with DX 8.1
2: DX 8.1 has improved performance over the older versions.
3: Most new games either require it or have it on their game CD anyways.
So there is NO reason for ANYONE not to have DX 8.1 (unless they run a MAC or LINUX machine) If they don''t have it, that means that it is a locked up school computer, that person never plays any new games and probably wont be interested in your demo, or they are EXTREMELY LAZY ( like me ).
1: Windows XP comes with DX 8.1
2: DX 8.1 has improved performance over the older versions.
3: Most new games either require it or have it on their game CD anyways.
So there is NO reason for ANYONE not to have DX 8.1 (unless they run a MAC or LINUX machine) If they don''t have it, that means that it is a locked up school computer, that person never plays any new games and probably wont be interested in your demo, or they are EXTREMELY LAZY ( like me ).
1) Not everybody has XP. Many developers are still developing to be backwardly compatible with W95.
2) Microsoft must think backward compatibiliy is important enough to make provisions for it in dx8.x.
3)Unless one is going to distribute dx8 executables and dlls one must detect and use the version that is available.
Well that is my take on it, anyway.
2) Microsoft must think backward compatibiliy is important enough to make provisions for it in dx8.x.
3)Unless one is going to distribute dx8 executables and dlls one must detect and use the version that is available.
Well that is my take on it, anyway.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement