Can't find DX8.1 Version
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
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
#ifndef DIRECTSTUFF_VERSION#define DIRECTSTUFF_VERSION 0x0800#endif
The difference with DirectInput is that it outputs a warning message when the version is undefined. Just add this before including dinput.h:
#define DIRECTINPUT_VERSION 0x0800
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement