高手来啊,多少会都不在乎error C2065: 'DirectInputCreateEx' : undeclared identifier
来源:百度知道 编辑:UC知道 时间:2024/05/25 07:02:35
不要瞎说
我已经安装了DX9,提出具体的解决方法,要在哪里设置,INCLUDE LIB,我都已经试过好多次了,8\9我都用过
#if !defined(__DD_H___)
#define __DD_H___
#pragma message("linking with Microsoft's DirectInput library ...")
#pragma comment(lib, "dinput.lib")
#pragma comment(lib, "dinput8.lib")
#endif
//没用啊
我已经安装了DX9,提出具体的解决方法,要在哪里设置,INCLUDE LIB,我都已经试过好多次了,8\9我都用过
#if !defined(__DD_H___)
#define __DD_H___
#pragma message("linking with Microsoft's DirectInput library ...")
#pragma comment(lib, "dinput.lib")
#pragma comment(lib, "dinput8.lib")
#endif
//没用啊
到微软主页下载个direct SDK,然后看人家document中的例子
显卡的原因
安DX9试试看
#include <dinput.h>
#pragma message("linking with Microsoft's DirectInput library ...")
#pragma comment(lib, "dinput.lib")
#pragma comment(lib, "dinput8.lib")
将上面的代码放入你的项目文件中。(可以是头文件)
不过我在创建DirectXInput时用的是下面的代码:
if( FAILED( DirectInput8Create(hInstance, DIRECTINPUT_VERSION, IID_IDirectInput8,(void **)&m_lpDxInput, NULL)))
return FALSE;
............................................
另外,你需要安装DirectX9.0 SDK,而且也要安装Direct9.0,说明一下,两者不是一回事。