Archived

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

DirectInput

This topic is 5617 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

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites