Skip to main content
GameDev.net gamedev.net
🔒 Locked

DInput problem

Started by Austrian Coder Sep 1, 2003 at 6:38 PM 1 replies 850+ views
Original Post
Austrian Coder
Austrian Coder
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
Dreddnafious Maelstrom
Dreddnafious Maelstrom
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]
"Let Us Now Try Liberty"-- Frederick Bastiat
Austrian Coder
Austrian Coder
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...

Topic Locked

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

Sign in to reply to this topic.