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 solveCodePudding user response:
Seem to find a solution:Join the # include & lt; Dinput. H>
This line.