Home > other >  An error occurred when DX9, said LPDIRECTINPUT8 LPDIRECTINPUTDEVICE8 undefined
An error occurred when DX9, said LPDIRECTINPUT8 LPDIRECTINPUTDEVICE8 undefined

Time:09-22

LPDIRECTINPUT8 g_pDirectInput=NULL;
LPDIRECTINPUTDEVICE8 g_pKeyboardDevice=NULL;



The error C2146: syntax error: missing '; 'before the identifier' g_pDirectInput '
The error C2501: 'LPDIRECTINPUT8: missing storage - class or type specifiers
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

In the program dinput. H dxguid. Lib dinput8. Lib are added, using vc6.0

Teaching materials are mostly wrote, is the directx SDK or vc version issue???????

CodePudding user response:

The above problems, to solve

CodePudding user response:

Seem to find a solution:
Join the # include & lt; Dinput. H>
This line.
  • Related