Archived

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

Cant get DInput working

This topic is 6015 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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