   Can't set up Direct Input
  I originally posted this in the DirectX forum and my original problem was solved. But now I got another problem... I don't know if this has any relevance to my problem but I have Windows XP and I use a Microsoft Visual C++ 6.0 Introductory Edition compiler. Okay, here's what happened:I wanted to learn to use Direct Input so I could use a controller/joystick in my programs. I found and began to do this tutorial here. It tells me to include dinput.h, and link dinput8.lib and dxguid.lib, and I did. Then I try to create my LPDIRECTINPUT8 object (which I named DIObject), like so:if(FAILED(DirectInput8Create(hInstance, DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)DIObject, NULL))){MessageBox(NULL, "DirectInput8Create failed.", "Error", MB_OK | MB_ICONSTOP);return FALSE;}It gave me a link error. But Drew Benton (I believe it was) told me to #include <objbase.h>, #define INITGUID, and #include <initguid.h> before including dinput.h, and that fixed it. Then, two lines later, I got another link error while trying to create my LPDIRECTINPUTDEVICE8 object for the keyboard (which I named Keyboard). Here's the code:if(FAILED(DIObject->CreateDevice(GUID_SysKeyboard, &Keyboard, NULL))){MessageBox(NULL, "CreateDevice for the keyboard failed.", "Error", MB_OK | MB_ICONSTOP);return FALSE;}if(FAILED(Keyboard->SetDataFormat(&c_dfDIKeyboard))) // This causes the error{MessageBox(NULL, "SetDataFormat for the keyboard failed.", "Error", MB_OK | MB_ICONSTOP);return FALSE;}Here's the error:--------------------Configuration: Direct Input Test - Win32 Debug--------------------Linking...dinput8.lib(dilib2.obj) : fatal error LNK1103: debugging information corrupt; recompile moduleError executing link.exe.Direct Input Test.exe - 1 error(s), 0 warning(s)Someone sugested I hit Build->Clean. I tried this, but it doesn't work, I get the same error. I get the feeling Direct Input hates me. Anyway, I would be most appreciative for any help anyone could give me. Thanks in advance.   
  First thing's first: Make sure that it's "(void**)&DIObject", not the other way around. That would have caused a run-time error.As for the linker error, I'm not sure what to tell you. Try recompiling your application, and if that doesn't work, you might have to try and find a different SDK for DirectX (although I'd try a couple of other things before doing this).You can also try searching for that specific library file, but I'm not sure how much that will benefit you.   ;  I have the same linker error, please let me know if you solve it!   