Skip to main content
gamedev.net
🔒 Locked

DirectInput Problems

Started by jms Jan 15, 2002 at 7:28 PM 1 replies 250+ views
Original Post
jms
jms
I''m running WIN2K Pro, DX 8.1, and i keep getting errors when trying to initialize the input system. It can''t seem to resolve the DirectInput Interface Identifier. Here''s the error message from the compiler: InputSystem.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A Any ideas how to solve this? I have tried compiling unchanged code from Prima-Tech''s OpenGL Game Programming book, and Shining Knights Game Tutorial 1, both of which give exactly the same error. Any help would be appreciated.
ElusDude
ElusDude
Try adding dxguid.lib to your workspace. I think that resolves the ID linking problems.
jms
jms
Nice!

Thanks for putting me on the right track.
It was actually linked properly, but the problem was
that I was using the incorrect version of the Direct
Input files. Seems like my install of DX8 SDK didn''t
install the files in VC++ correctly.

Cheers

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.