作者newdominic (随兴至上)
站内GameDesign
标题[程式] DirectInput的编译问题
时间Wed Aug 22 23:55:13 2007
使用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
1F:→ jellyice:提供个程式码载点可能会比较容易帮忙查看 08/23 07:08
2F:→ newdominic:已解决 谢谢 08/23 11:48