Solved

Problem with LPDIRECTINPUT8

Posted on 2003-11-03
3
1,151 Views
Last Modified: 2013-12-26
Well yes I have great problems with it. I understand most of it but it won't compile. I think I've set up the compiler wrong but I can't see what. I can't even compile the keyboard code that was included in Microsoft Directx SDK. It says :
LPDIRECTINPUT8' : missing storage-class or type specifiers
and about 160 other messages related to that one. Now I use Microsoft Visual C++ 6.0 and I've linked to dinput.lib and dinput8.lib and I've included dinput.h but still nothing. Every other DirectX aspect works as it should except the input part. And as I said it isn't just my code but every code using directinput. I really need it for my project so I'd be really happy if anyone had the solution to this!
0
Comment
Question by:Arcader
3 Comments
 

Accepted Solution

by:
arudson earned 135 total points
ID: 9764759
First of all, make sure your include/library directories are at the top of the list, in your project settings. You don't want the compiler looking at the defaults (which are much older than DX8).

Secondly, you should tell DirectX you want to use version 8 of direct input. You do this with a simple definition (before you include headers):

#define DIRECTINPUT_VERSION       0x0800

Cheers.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now