Archived

This topic is now archived and is closed to further replies.

poogobbler

Cant get DInput working

Recommended Posts

Im not sure what im doing wrong. I followed the tutorials to the letter but i keep getting these errors. c:\mike\6-22test\cmdx.cpp(75) : error C2065: ''DirectInputCreate'' : undeclared identifier c:\mike\6-22test\cmdx.cpp(82) : error C2065: ''c_dfDIkeyboard'' : undeclared identifier Im included DInput.h and DInput.lib but it just dosnt want to work. Everything i do with direct draw works fine.

Share this post


Link to post
Share on other sites
I have dx8 installed and have the dx8 sdk. I was using dx7 dinput functions but then i switched it to dx8 and now im getting linker errors.

--------------------Configuration: test - Win32 Debug--------------------
Linking...
CMDX.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

test.exe - 2 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
I didnt forget i just didnt know. Thx for the info. Damn what a waste of time. No where in any of the tutorials did it say you needed to include dinput8.lib instead of dinput.lib.

Share this post


Link to post
Share on other sites
haha, i did the same thing when i first tried to set up direct input, i didn''t know you needed dinput8.lib, oh well, goodluck, alter-

what we do in life... echoes in eternity...

Share this post


Link to post
Share on other sites