Hello All,
I''m currently experimenting with direct input. I have included the neccisarry header files and library files (dinput.h, dinput8.lib, dxguid.lib) however I recieve an odd linker error when I compile my program:
MainApp.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A
Debug/MainApp.exe : fatal error LNK1120: 1 unresolved externals
I know this is typically resolved by including the required library files in your project, but from all the books and tutorials i''ve read, I am including everything that needs to be included.
Here is my source:
IDirectInput8 * lpDI;
// GetHINST returns a copy of winMain''s hInstance
if(FAILED(DirectInput8Create(GetHINST(), DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)&lpDI, NULL)))
return E_FAIL;
Anyone know what could be causing the problem?
Thanks in advance!
¬_¬