Solved

Problem with LPDIRECTINPUT8

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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 …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

10 Experts available now in Live!

Get 1:1 Help Now