Sign in to follow this  

make dx work better

This topic is 4379 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

is there a way if you use the newest dx9 sdk for it to run on other versions of dx9 besides the newest runtime version? example, my game is built with the dec 2005 dll's and i cant run my program on my other computer that has the oct 2005 runtime dll's. thanks in advanced.

Share this post


Link to post
Share on other sites
Quote:
Original post by RDragon1
Is this related to your problem:?

http://www.toymaker.info/Games/html/d3dx_dlls.html


no, i dont want a dll. i want to know if it's possible for the newest dx9 sdk to run on other versions of dx9.

like do i have to change Direct3DCreate9(D3D_SDK_VERSION)? because that means its only going to use the newest dx9 dll's and not the old ones. is there a different parameter besides D3D_SDK_VERSION?

Share this post


Link to post
Share on other sites
You can use the classes from the older versions as long as you only use the functions that work for that version.
For example, with the sample you gave if your interface is declared as

LPDIRECT3D8 pInterface;

instead of
LPDIRECT3D9 pInterface

as long as you use the correct function to create the interface, namely Direct3DCreate8(D3D_SDK_VERSION), you will then be working with an interface for Direct3D version 8!

Hope this helps,

PhilHalf

Share this post


Link to post
Share on other sites
Quote:
Original post by 31337noob
example, my game is built with the dec 2005 dll's and i cant run my program on my other computer that has the oct 2005 runtime dll's.


The Oct 2005 runtime DLL's are still DirectX 9.

What exactly do you mean here? WHY can't you play your game on your other computer?

Share this post


Link to post
Share on other sites
Sorry, just reread your query and it seems I misunderstood the first time.
The only reason I can think that it wouldn't work using the older dll's is that maybe a parameter on one of the functions you are using has changed slightly or maybe there is an issue with the driver on the other computer?

Cheers,

PhilHalf

Share this post


Link to post
Share on other sites
This has been a common problem for the last year or so due to the change in D3DX linking. As the D3DX library is now dynamically linked you must have the exact version of the SDK that you compiled against if you use any of the D3DX functionality.

So if you build with December 2005 and use anything D3DX than you must distribute the updated runtimes.

Share this post


Link to post
Share on other sites
Quote:
Original post by Saruman
This has been a common problem for the last year or so due to the change in D3DX linking. As the D3DX library is now dynamically linked you must have the exact version of the SDK that you compiled against if you use any of the D3DX functionality.

So if you build with December 2005 and use anything D3DX than you must distribute the updated runtimes.


oh ok.

Share this post


Link to post
Share on other sites

This topic is 4379 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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