PDA

View Full Version : NeHe DirectInput tutorial



dfanuk
04-04-2002, 02:56 AM
I have attempted to alter the nehe directinput tutorial so that it uses DirectX version 8 rather than 7. My attempts at this failed due to lack of understanding of directx I think. So instead I decided to download the relevant include and library files for DirectInput7 and put these in my Visual C++ directory and linked them. However, I am still getting these errors upon compilation:
syntax error : missing ';' before identifier 'g_DI'
'LPDIRECTINPUT7' : missing storage-class or type specifiers
I am baffled and don't know what to do. Any help would be appreciated!

Thanks

regards
Gareth
<><

Bob
04-04-2002, 03:13 AM
You better as DirectX specific questions elsewhere. This forum is about OpenGL. Try flipcode (http://www.flipcode.com) and/or gamedev (http://www.gamedev.net) instead.

J P
04-04-2002, 02:22 PM
Simply add the following statement to your OpenGL

#define DIRECTINPUT_VERSION 0x0700

Before

#include <dinput.h>

This was a reply to the same question I posted a while back to the NeHe forum, and I'm sorry to say that I forget the name of the nice person who posted the reply