LPDIRECTINPUT8 g_pDirectInput = NULL;
LPDIRECTINPUTDEVICE8 g_pKeyboardDevice = NULL;
error C2146: syntax error : missing ';' before identifier 'g_pDirectInput'
error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
----------------------------
在程式中 dinput.h dxguid.lib dinput8.lib都添加了,用的是vc6.0
教材大都這樣寫,是directx sdk 問題還是vc版本問題???
uj5u.com熱心網友回復:
問題同上。求解uj5u.com熱心網友回復:
貌似找到解決辦法了:加入#include <dinput.h>
這一行即可。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/62862.html
標籤:其它游戲引擎
