Solved

Problem with LPDIRECTINPUT8

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

20 Experts available now in Live!

Get 1:1 Help Now