Jump to content
  • Advertisement


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


Direct Input weird error

This topic is 5855 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

can anyone take a guess at why I''m getting this error? Its directx 8.1, and DIRECTINPUT_VERSION is 0x0800 error C2039: ''CreateDevice'' : is not a member of ''IDirectInputDevice8A'' I''ve been stumped for about an hour, I was hoping that maybe someone here had come across it before. Thanks in advance.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
You create the device by IDirectInput8::CreateDevice(); and not
IDirectInputDevice8::CreateDevice() <-- that one dont even excist )

Well gl hf and read the tutorial in the directx docs )

Share this post

Link to post
Share on other sites
Speaking of DirectInput, I also have a strange error I''ve been struggling with for some time now.
I use DirectInput for both mouse and keyboard. My problem is with the line:

Mouse.GetDeviceData(DevData, DIGDD_DEFAULT)

This line kept me from running my game so I tried to place an ''on error resume next'' line over the GetDeviceData line and that made it possible to even run the app.

Anyone know why this line would fail? The DevData is defined as following: Dim DevData(1 To 10) As DIDEVICEOBJECTDATA
It wont help to increse to buffer.

The cooperative levels of the mouse and keyboard is set like this:

Also, like half of the times I run the app I cant access nither mouse nor keyboard and I get this error:
The system cannot read from the specified device.

Thanks for any help!

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!