   DirectInput
  Hi all,I'm using DirectInputCreateA and i linked dinput8.lib but when i compile thecompiler give me LNK1120 error :( i looked the dinput8.dll exports and there isn't any DirectInputCreateA function there is only DirectInput8CreateWhat library i should link?   
  It seems that DirectInputCreate function is only for Windows CE.   ;  I don't have Visual Studio on this PC, but by searching in google I found this piece of some DX header file:#if DIRECTINPUT_VERSION > 0x0700extern HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID *ppvOut, LPUNKNOWN punkOuter);#elseextern HRESULT WINAPI DirectInputCreateA(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter);extern HRESULT WINAPI DirectInputCreateW(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTW *ppDI, LPUNKNOWN punkOuter);The point is, just try to use DirectInput8Create ;)   ;  I need use DirectInputCreateA :(   ;  Why do you need to specifically target DirectInputCreateA ??If you are not in unicode mode DirectInputCreate will automatically target DirectInputCreateA for you.   ;Quote:Original post by CosmyI need use DirectInputCreateA :(Are you really sure? What are your reasons?   ;Quote:Original post by CosmyI need use DirectInputCreateA :(Unless you have a very good reason, you shouldn't be using DirectInput at all, let alone a version that's not been updated in who knows how long.   ;Quote:Original post by Evil SteveUnless you have a very good reason, you shouldn't be using DirectInput at all, let alone a version that's not been updated in who knows how long.... for mouse or keyboard input. We don't know what's Cosmy using DI for, maybe for joysticks/gamepads/wheels?;Quote:Original post by Tom KQTQuote:Original post by Evil SteveUnless you have a very good reason, you shouldn't be using DirectInput at all, let alone a version that's not been updated in who knows how long.... for mouse or keyboard input. We don't know what's Cosmy using DI for, maybe for joysticks/gamepads/wheels?Fair point - although I'd avoid DirectInput as much as humanly possible [smile]   ;  Haha! Everytime I see DirectInput mentioned, I wonder how long it will be before Evil Steve finds out.   