Sign in to follow this  
askavenger

Direct X SDK

Recommended Posts

askavenger    122
Hi everyone I have a question about DirectX SDK 8.0 and 9.0. I am learning C++ by reading Game Programming ALL IN ONE. This book uses the old DirectX SDK 8.0. I think the current DirectX SDK is 9.0. If I use 9.0 will the C++ codes still work? Also, i don't think you can download directX SDK 8.0. Thanks!

Share this post


Link to post
Share on other sites
Illco    928
I think DX is backward compatible. Each interface is postfixed by an SDK version number. You can thus link DX 8 applications against the DX 9 SDK, using only the DX 8 interface. But I have no experiene with this and maybe it is very complicated to get this right.

Greetz,

Illco

Share this post


Link to post
Share on other sites
ascorbic    307
Everything DX is backwards compatible. You'll be fine. Follow the book you're using to learn DX and upgrade to the newer versions as you become more competent.

Share this post


Link to post
Share on other sites
Sneftel    1788
Wellll. Not quite.

The DirectX runtime is backwards compatible. But the DirectX SDK is not. So if you want to program with the DX8 interfaces, you'll need (at the very least) the header files and import libraries which correspond to DX8; the DX9 ones won't cut it. Once the program's compiled, of course, people can use the DX9 runtime to run it.

Share this post


Link to post
Share on other sites
fuchiefck    166
just one thing to note, some of the interface names that contains the version number needs to be changed, eg in DX 8, the device interface is IDirect3DDevice8, whereas in DX9, it is IDirect3DDevice9.

-fuchiefck

Share this post


Link to post
Share on other sites
fuchiefck    166
Quote:
Original post by askavenger
Let me get this clear. Basically the DirectX SDK 8.0 codes will not work for DirectX SDK 9.0.


no it will not work

-fuchiefck

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