看板 GameDesign 關於我們 聯絡資訊
使用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
jellyice:提供個程式碼載點可能會比較容易幫忙查看 08/23 07:08
newdominic:已解決 謝謝 08/23 11:48