NeHe DirectInput tutorial

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
<><

You better as DirectX specific questions elsewhere. This forum is about OpenGL. Try flipcode and/or gamedev instead.

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