Direct Input Link Error
My error:
LNK2001: unresolved external symbol _IID_IDirectInput8A
My code (linebreaks added here only):
if (FAILED(DirectInput8Create(GetModuleHandle(NULL),
DIRECTINPUT_VERSION,
IID_IDirectInput8,
(VOID**)&diobject,
NULL)))
return 0x02;
My includes:
#include <windows.h>
#include <d3dx9.h>
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
My links:
d3dx9.lib d3d9.lib dinput8.lib
I'm just working with this for the first time, and I did everything almost exactly like the reference and samples, as far as I can tell.
Lacking the DXSDK on this computer, I can only speculate; have you tried linking to dxguid.lib as well?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement