• Advertisement

Archived

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

DInput problem

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

Ok... with the directx 9.0 sdk i have problems. The last one, i hope is this: if (FAILED(DirectInput8Create(GetModuleHandle(NULL), DIRECTINPUT_VERSION, IID_IDirectInput8, (VOID**)&m_DirectInput, NULL))) --> error LNK2001: unresolved external symbol _IID_IDirectInput8A fatal error LNK1120: 1 unresolved external if i change IID_IDirectInput8 to IID_IDirectInput all compiles, but it cant create the main direct input object. Whats wrong? Thanks, Christian

Share this post


Link to post
Share on other sites
Advertisement
you need to import the dxguid library. That'll fix it for ya.

*edit, and possibly the DXInput8 library also, if you havent already.

Dredd

[edited by - Dreddnafious Maelstrom on September 1, 2003 9:18:02 PM]

Share this post


Link to post
Share on other sites
Hmm... it doesnt work

#include <windows.h>

#pragma comment(lib, "dinput8.lib")
#pragma comment(lib, "dxguid.lib")

#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>

The same error...

Share this post


Link to post
Share on other sites

  • Advertisement