Really stuck atm. Downloaded DirectX as advised and found the DirectInput header file, lib file and a tutorial but right now I'm stuck with a linking error: 'unresolved external symbol _IID_IDirectInput8A'.
I'm declaring
LPDIRECTINPUTDEVICE8 joystick;
and I can see LPDIRECTINPUTDEVICE8 in the dinput.h file which I've included in my actual project folder, along with the dinpult.lib file which came with the DirectX SDK.
There are now three copies of dxguid.lib, one in my C:\Program Files\Microsoft Visual Studio\VC98\Lib directory (must be the old one) and one each in C:\Program Files\Microsoft DirectX SDK (June 2010)\Lib\x86 and C:\Program Files\Microsoft DirectX SDK (June 2010)\Lib\x64. The latter two came with the DirectX SDK and are a lot larger, but when I try to put those libs in my project folder I get another error telling me to rebuild the module.
Exhausted online resources at this point. Just can't get a bog-basic joystick sample with DirectInput and I'm not a programming wizz kid. Any ideas?