Sign in to follow this  
swati2424

DirectX8 and DirectX9

Recommended Posts

swati2424    122
I am a beginner DirectX developer. I recently installed DirectX 9.0 August 2005 SDK on my machine. I have a few sample source codes that include Direct3D 8 and Direct3DX 8 files. The SDK comes with d3d8.h include file but it does not have d3d8x.h include file. So, I changed to references from 8 to 9 in the source code and thought that the more recent development would be backwards compatible. I was wrong and I am unable to build those examples with the current SDK. Is this a generic problem with DX or is it well understood? Any light on the compatibility issue and the best solution will be appreciated. Thank you

Share this post


Link to post
Share on other sites
DrunkenHyena    805
The SDKs have always been backwards compatible in that the old interfaces were included along with the new ones. Unfortunately they broke this a little while back when they stopped including the DX8 version of D3DX.

I'd recommend travelling the path of least resistance and learn DX9 unless you have a compelling reason not to. The Forum FAQ has a lot of good resources to help you on your way.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
btw, is there a way to use both d3d8 and d3d9 in the same app ?

or do i need to make separate dlls?

for me it seems the header files conflict with each other

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Tou cannot use both d3d8 and d3d9 in the same time. d3d9 is almost like d3d8 with minor modificatons, so conversion is insignificant amount of work.

cheers

Share this post


Link to post
Share on other sites
swati2424    122
No you cannot use both DX8 and DX9 in the same app. DX9 comes with D3D8 header file but it does not come with D3DX8 header file. I have so far found the SDK to be backwards incompatible and it is not trivial to compile the DX8 programs using the DX9 SDK. Most of the changes in DX9 including function declarations are documented on MSDN at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/converting_to_directx_9.asp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this