Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Can't find DX8.1 Version

This topic is 6021 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

I just reinstalled windows (XP), and installed the 8.1 SDK instead of the 8.0a SDK I used before. Unfortunately, now all my programs come up with the warning: c:\lang\dx81sdk\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800 The downside of this is: DrawPrimitive now fails to work. Have I done something wrong in installing the SDK??? Any Ideas? I installed Visual C++ first. DX8.1 SDK second. - it seems to have linked in OK. Thanks for all assistance Simon

Share this post

Link to post
Share on other sites
The warning you get is "normal". All SDK headers define their version like this:


The difference with DirectInput is that it outputs a warning message when the version is undefined. Just add this before including dinput.h:


and the warning will go away.

As for DrawPrimitive failing, this has nothing to do with DirectInput and you have to be more specific to get help.

Try installing/switching to debug D3D runtime and run your program under debugger. See if D3D complains about anything.

Edit: fixed code tags.

Edited by - IndirectX on February 19, 2002 2:28:25 AM

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!