We help IT Professionals succeed at work.

dinput8

ralph78
ralph78 asked
on
hi!
i encounter a big problem using direct input 8:
whatever i do, a link error occurs:
unresolved external symbol _IID_IDirectInput8W
i know that this CLSID is defined in dinput.h, so i don't understand why this error occurs. however, i tried to recompile dinput samples of the sdk, and the same error occurs. to sum up, i'm unable to use direct input 8...
please help!!!!!!

regards, Raph
Comment
Watch Question

Commented:
Hi ralph78,

you also need to link to <dxguid.lib>. To do so - using MS Visual Studio - open [Project]->[Settings...] and open the [Link]-Tab. Enter dxguid.lib in the [Object/library modules:]-field and rebuild the project.

Hope this helps,
.:fl0yd:.

Author

Commented:
yes i did, but i did a stupid error too: the dx lib path was behind the vc lib path, so the linker used the vc version of dinput (7 i think)
thanks anyway

raph

Explore More ContentExplore courses, solutions, and other research materials related to this topic.