DirectX8 and DirectX9
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
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.
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.
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
or do i need to make separate dlls?
for me it seems the header files conflict with each other
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
cheers
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
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/converting_to_directx_9.asp
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement