Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem with LPDIRECTINPUT8

Posted on 2003-11-03
3
Medium Priority
?
1,180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
arudson earned 540 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

721 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