Menu

Direct X Direct Input Initialization

2002-09-28
2012-09-26
  • Nobody/Anonymous

    I have recently downloaded Dev CPP and the Direct X support files. After importing a 3D Visual C++ project, and some editing it compiles rather well.

    However, the compiler does report an error when initializing Direct Input. This is the only error reported so far in the build. Everything else seems rather clean.

    It is as follows:
    undefined reference to 'IID_IDirectInput8A'

    It is defined in dinput.h which is included. The libdxguid.a is also included in the linker.

    What am I missing ?

    The command:

    hr = DirectInput8Create(hInst, DIRECTINPUT_VERSION,IID_IDirectInput8, (void**)&lpDI, NULL);

    Thanks in advance,

    Guy

     
    • Nobody/Anonymous

      I think I posted this in the wrong forum.
      My apologies.

       
    • Anonymous

      Anonymous - 2002-09-28

      OK. Got it to work now.
      Plugged in IID_IUnknown, and it works fine.
      My question now is why ?

       

Log in to post a comment.