Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

can't link... porting from dx8 to dx9

I changed everything needed to be changed in the code... and now I am left with the linker error:
'unresolved external symbol' for the identifiers

c_dfDIKeyboard
c_dfDIMouse
DirectInput8Create

From what I gathered there is no DInput9 so I should keep working with 8.

These are the additional libs in my projects properties:
d3dx9dt.lib
d3d9.lib
winmm.lib
dxguid.lib  
comctl32.lib

what am I missing?
0
Krip
Asked:
Krip
1 Solution
 
TGGCCommented:
dinput8.lib (if there is none in DX9)
0
 
VeddarthaCommented:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/input/ref/functs/directinput8create.asp

To create a DirectX 8.x interface with the DirectX 9.0 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.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now