Solved

Problem with LPDIRECTINPUT8

Posted on 2003-11-03
3
1,169 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RTS - how do I code it with few machines? 9 153
Java - are methods called from within a Thread threaded? 2 71
Trigonometry for game star field help 1 132
Fibonacci challenge 11 138
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

696 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