Release: unresolved token IID_IDirectInput8A

I am trying to build a release version of my application but I can't seem to link it properly as explained in:

http://msdn.microsoft.com/library/default.asp url=/archive/en-us/directx9_c_Oct_2004/directx/input/ref/functs/directinput8create.asp

I'm trying to create a DirectX 8.x interface with the DirectX 9.0c software development kit (SDK) without using CoCreateInstance:
  1. Set "#define DIRECTINPUT_VERSION 0x0800" before the include statement for Dinput8.h.
  2. Call DirectInput8Create instead of DirectInputCreateEx.
  3. Link to the Dinput8.lib library instead of Dinput.lib.

But I keep getting:

error LNK2020: unresolved token (0A00012B) IID_IDirectInput8A

Does anyone know a solution




Answer this question

Release: unresolved token IID_IDirectInput8A

  • James_lh

     perin wrote:
    error LNK2020: unresolved token (0A00012B) IID_IDirectInput8A

    Try linking with dxguid.lib as well.

  • Sung

    Thanks, On the debug version the .lib file was included but not on the release.



  • Release: unresolved token IID_IDirectInput8A