Skip to main content
gamedev.net
🔒 Locked

DirectInput

Started by Trireme Jul 26, 2002 at 9:25 AM 2 replies 250+ views
Original Post
Trireme
Trireme
I am new to coding directX, and I am baffled by the latest Unresolved External error I''m getting. m_keyboard->SetDataFormat(&c_dfDIKeyboard) Results in the compiler complaining about unresolved external ''_c_dfDIKeyboard''.. I have included dinput.h, and I have the dinput8.lib and dxguid.lib libraries added to my project as well. Any ideas? Is there another lib I should have?
Spacecat
Spacecat
Silly question: Did you also include the dinput.cpp file in your workspace?
=^.^= Leaders and teachers should remember: It is best to offer others what they Need, not what they Want.
__ODIN__
__ODIN__
If you''re using DX8, you need to type _INIT_GUID (check the spelling on that

Essentially, this sets up all the GUIDs used by DI

Allan

Fe doeyr, Frender Doeyr,Ein sjoelv doeyr paa sama vis.
Eg veit et som aldri doeyr, dom over kvar ein doed.
Cattle die, Friends die, You yourself will also die.
I know something that never dies, the memory of every dead.
Trireme
Trireme
Hey, I found the problem.. I am using Borland to compile, so I had downloaded the Borland libs a while ago. I happened to read the readme that came with that download, and I guess they had moved all of the c_dfDI globals to c_dinput.lib. Adding c_dinput.lib to my project solved the problem.

Thanks for your help anyways!

Topic Locked

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

Sign in to reply to this topic.