PDA

View Full Version : I need directX input system's file -->dinput.h


kennyurge
04-07-2006, 02:41 AM
Hello~
Can someone please help me?
I need to download a header file called dinput.h,
it's a header file for the directX 8 input system....
In my system i want to use this input system to receive my mouse and keyboard...

I tried to search online but all links that can download this header no longer exists, I wonder why.....

Or...I f you guys know there's another directX input system that works like this (I mean maybe a latest version of input system that can wok with OpenGL) Please tell me....Thanks very much~
:worthy: :worthy:

Goz
04-07-2006, 03:32 AM
Erm afaik DX9 input will work fine with OpenGL ... just download the SDK ...

monjardin
04-07-2006, 06:14 AM
DirectX SDK - (February 2006) (http://www.microsoft.com/downloads/details.aspx?FamilyID=EDB98FFA-A59C-4C23-9B92-BA304F188314&displaylang=en)

kennyurge
04-07-2006, 10:15 PM
hey guys~...I new in gaming world and Im using OpenGL to do my game....
I used DirectX input (directX8.0) in my openGL program to receive keyboard and mouse input...
When I compiled my program, successful.....
But when I execute it.....fatal error.....

Here's the error:

--------------------Configuration: APRON - Win32 Debug--------------------
Linking...
InputSystem.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
InputSystem.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
InputSystem.obj : error LNK2001: unresolved external symbol _c_dfDIMouse
InputSystem.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
InputSystem.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20
InputSystem.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A
Debug/APRON.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

Can I know how to solve this linking error(I scare of linking error very much cause usually I don't understand where's the error is....)

Thanks.....Hope to hear from you guys...

bladder
04-07-2006, 10:57 PM
Linking errors usually mean that you're using something that hasn't been defined. Or rather, the linker can't find where it's been defined. Linking errors are usually solved by linking in a library that has the symbol defined. In your case, you need to link in the dinput.lib library and the dxguid.lib library.

There's an easy to find out. Example:

"InputSystem.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20"

You can tell form that that it's talking about a function. You should be able to figure out that this function is the DirectInput8Create function. So just look that function up in the documentation and the docs should tell you which library that function is defined in. Then it's only a matter of linking in the library.

devil20
04-08-2006, 06:57 AM
Hi

You need to include direct input library to resolve this error. Check in documentation about function u have used and locate library name and give linkage to compiler.

For ie.

#pragma comment (lib,"directinput.lib")