游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1348|回复: 1

急急急~~~~~~dx问题

[复制链接]

2

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2006-7-23 11:21:00 | 显示全部楼层 |阅读模式
这是HandleKey.h
-------------------------------------------------------------------
#include"dinput.h"
extern HINSTANCE g_hInst;
extern HWND g_hWnd;
#define SafeRelease(pObject) if(pObject!=NULL){pObject->Release();pObject=NULL;}
LPDIRECTINPUT8 pIDirectInput=NULL;
LPDIRECTINPUTDEVICE8 pIDirectInputDevice=NULL;//////提示这里错
char keyBuffer[256];
BOOL InitKeyboard();
BOOL IskeyPressed(int);
void ReleaseCOMObject();
---------------------------------------------------------------------------
错误为:
--------------------Configuration: input - Win32 Debug--------------------
Compiling...
HandleKey.cpp
d:\test\dxinput\input\handlekey.h(5) : error C2146: syntax error : missing ';' before identifier 'pIDirectInput'
d:\test\dxinput\input\handlekey.h(5) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
d:\test\dxinput\input\handlekey.h(5) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\HandleKey.sbr': No such file or directory
Error executing bscmake.exe.
-------------------------------------------------------------
dxguid.lib   dinput8.lib我都加过了
-------------------------------------------------------------------
大家帮帮啊。。弄了好几天了。。。。。。。。。。。。。。

2

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
 楼主| 发表于 2006-7-23 11:22:00 | 显示全部楼层

Re: 急急急~~~~~~dx问题

不好意思,打错了。。。。
错误在第5行。。。。
我标注的上面一行。。。。。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-25 00:08

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表