Jump to content
  • Advertisement

Archived

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

cpp boy

Direct Input problem

This topic is 5608 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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
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

Share this post


Link to post
Share on other sites
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
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!