Archived

This topic is now archived and is closed to further replies.

cpp boy

Direct Input problem

Recommended Posts

cpp boy    116
Hi people, I''ve got a really big problem in direct input. You see i include dinput.h and dinput.lib . When i get to making the LPDIRECTINPUT lpdi it goes fine. But when i go to the function DirectInputCreate, that show the function parameters, it says that the function doesn''t existe. I''ve tried reinstalling my sdk''s but nothing have change. And my problem isn''t in the parameters that I''ve put inside. What could be the problem. I''ve got my sdk from a cereal box(joke I got it from Programming rôle playing game whit directx). Kevin

Share this post


Link to post
Share on other sites
cpp boy    116
I''ve resold that problem by installing an other version of directx sdk. But now i''ve got an event bigger problem. I''m now trying to make a keyboard device and it a total desaster. Here the code that I use.

#define INITGUID

#include <objbase.h>

LPDIRERCTINPUTDEVICE lpdikey;

lpdi->CreateDevice(GUID_SysKeyboard, lpdikey, NULL);

and i compille all goes well but then my application bugs and then i return to msvc++ and they say there an error whit this and they dont specifie here where they point the error

lpdi->CreateDevice(GUID_SysKeyboard, lpdikey, NULL);

what could be the problem. And by the way i use directx 6.1 sdk''s to do so and msvc++ 6.0 to compile.

Kevin

Share this post


Link to post
Share on other sites
Prozak    898
instead of lpdikey try &lpdikey ......
if that fails email me and i''ll send you a piece
of easy code that works with dx8. i had the same prob 3 days ago...

[Hugo Ferreira][Positronic Dreams]
Need [3D Artist] & [Sound Designer]
for small project. Contact me plz...

Share this post


Link to post
Share on other sites
cpp boy    116
sorry in my code i had put the &. But my code isn''t a problem for the debbuger of c++ but for windows it is. I think it''s because I''m trying to initialize directdraw and directInput at the same time, but it could be possible that its not.

Kevin

Share this post


Link to post
Share on other sites
Colin Jeanne    1114
quote:
Original post by cpp boy
for the moment I''m using directx 6.1 I have the 8.1 sdk but direct Input didn''t seemed to work so i changed.

Kevin


Dont blame Direct Input for your own mistakes.



Qui fut tout, et qui ne fut rien
Invader''s Realm

Share this post


Link to post
Share on other sites
Prozak    898
Well Invader, i''m disapointed. That reply was everything
but helpful. Let''s make sure that does''nt happen again, ok?
cpp boy, i''m sorry, but i''m not the kind of coder that
can look at a piece of code and tell what the proble was.
Lets do this, you zip your source code and email it to
hugo@positronicdreams.com and i''ll compile it and try it out,
ok?

this is the best i can do for you right now, so go zip it.

[Hugo Ferreira][Positronic Dreams]
Need [3D Artist] & [Sound Designer]
for small project. Contact me plz...

Share this post


Link to post
Share on other sites
Colin Jeanne    1114
quote:
Original post by pentium3id
Well Invader, i''m disapointed. That reply was everything
but helpful. Let''s make sure that does''nt happen again, ok?



I disagree. Direct Input 8.1 works just fine so the problem was with his code or his setup. Instead of saying "Direct Input 8.1 doesn''t seem to work" he could rephrase it an say "Which part do I need to fix?" How do you expect somebody to learn how to use an API if they are more willing to give up than to troubleshoot?



Qui fut tout, et qui ne fut rien
Invader''s Realm

Share this post


Link to post
Share on other sites
Prozak    898
man, just remember that we aren''t all on the same
level, some of us do struggle a lot to learn...
Everybody that comes in here with a doubt is already
a hero in my book because, instead of spending their
free time doing pointless stuff, they actually spent
it learning, or trying to learn this crap...

unhelpfull, newbie-bashing posts rubb me the wrong way...

peace!

[Hugo Ferreira][Positronic Dreams]
Need [3D Artist] & [Sound Designer]
for small project. Contact me plz...
[-NO TO WAR ON IRAQ-]

Share this post


Link to post
Share on other sites
Colin Jeanne    1114
quote:
Original post by pentium3id
man, just remember that we aren't all on the same
level, some of us do struggle a lot to learn...
Everybody that comes in here with a doubt is already
a hero in my book because, instead of spending their
free time doing pointless stuff, they actually spent
it learning, or trying to learn this crap...

unhelpfull, newbie-bashing posts rubb me the wrong way...



I think I've made my point. But, to get back on topic, cpp boy, if you can tell us why Direct Input 8 isn't working we can help you to fix your code.



Qui fut tout, et qui ne fut rien
Invader's Realm

[edited by - Invader X on March 8, 2003 1:42:57 AM]

Share this post


Link to post
Share on other sites
cpp boy    116
there ain''t problem whit the code spelling or a function missing. My prob is probably whit windows or my compu. I could send you my code but maybe it will work whit your compu. I will post it this mounday or thusday or maybe event tommorow.

Kevin

Share this post


Link to post
Share on other sites