[程式] DirectInput的編譯問題

看板GameDesign作者 (隨興至上)時間17年前 (2007/08/22 23:55), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/2 (看更多)
使用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
文章代碼(AID): #16p5nacK (GameDesign)
文章代碼(AID): #16p5nacK (GameDesign)