Sign in to follow this  

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

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this