[程式] DirectInput的編譯問題
使用VC6.0
DirectX SDK(June 2007)
我的程式中有include dinput.h檔
也設定好dinput.lib dinput8.lib dxguid.lib的連結了
VC與DXSDK的link跟include資料夾也確定無誤
但編譯的時候產生以下錯誤訊息
d:\dmc_directx\asdasd\global.h(41) : error C2146: syntax error : missing ';'
before identifier 'g_pDirectInput'
d:\dmc_directx\asdasd\global.h(41) : error C2501: 'LPDIRECTINPUT8' : missing
storage-class or type specifiers
d:\dmc_directx\asdasd\global.h(41) : fatal error C1004: unexpected end of
file found
d:\dmc_directx\asdasd\global.h(48) : error C2146: syntax error : missing ';'
before identifier 'g_pKeyboard'
d:\dmc_directx\asdasd\global.h(48) : error C2501: 'LPDIRECTINPUTDEVICE8' :
missing storage-class or type specifiers
d:\dmc_directx\asdasd\global.h(48) : fatal error C1004: unexpected end of
file found
這個問題讓我頭痛欲裂...麻煩有遇過這個問題的大大幫忙解答一下
謝謝>"<
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.225.116.245
→
08/23 07:08, , 1F
08/23 07:08, 1F
→
08/23 11:48, , 2F
08/23 11:48, 2F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):