# DInput doesn't like my LPDIRECTINPUT8

## Recommended Posts

A few months ago I downloaded the latest directX 9 SDK, the april 2005 edition. Prior, I've just been using DX5 until I started to run into some unsupported problems compelling me to update. I never checked to see if any of my code would compile. I get an error on this line:
LPDIRECTINPUT8        lpdi;
with these errors:
error C2146: syntax error : missing ';' before identifier 'lpdi'
error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
I notice that those errors go away if I take out my latest SDK from my compilers list of directories, but then I'd have to revert back to DInput 5. It would intuitively seem that I'm missing a semicolon on the line above, but I'm not. This may be a common problem, but I can't find a solution.

##### Share on other sites
Are you including the new header for DI 8?

#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>

yes, I am.

##### Share on other sites
Do you have a recent platform SDK installed?
Are you using Visual C++ 6? (It's not supported since the December 2004 SDK).

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
628332
• Total Posts
2982118

• 22
• 9
• 9
• 13
• 11