Skip to main content
gamedev.net
🔒 Locked

direct input 8 linker error

Started by ColdWind Jan 5, 2005 at 8:20 PM 1 replies 1k views
Original Post
ColdWind
ColdWind
Below is the code from microsoft's DX sdk for creating a direct input object: // HINSTANCE g_hinst; // initialized earlier HRESULT hr; LPDIRECTINPUT8 g_lpDI; hr = DirectInput8Create(g_hinst, DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)&g_lpDI, NULL); if FAILED(hr) { // DirectInput not available; take appropriate action } When I try to build this using VC.net I get an "unresolved external" linking error concerning the "IID_IDirectInput8" flag. I have no idea what the problem could be. I've included the dinput8 library and files and paths like I always do so I don't think it's that. It seems to take the DI structure and create function just fine, but chokes on the IID_IDirectInput8 flag. The linker actually specifies IID_IDirectInput8A as the unresolved external, but since I didn't define unicode that should be fine.
c_back
c_back
Did you include ? Not sure, just a guess. Good luck :)

Topic Locked

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

Sign in to reply to this topic.