|
|
// 创建一个 DIRECTINPUTDEVICE 界面
lpDirectInput->CreateDevice(GUID_SysMouse,&lpMouse,NULL);
if FAILED(hr)
{
MessageBox(hWnd,"mouse out!","",MB_OK);
return 0;
}
这是出问题的代码
编译的结果是这个:
--------------------Configuration: main - Win32 Debug--------------------
Compiling...
DxInput.cpp
Linking...
DxInput.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
Debug/main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
main.exe - 2 error(s), 0 warning(s)
很奇怪为什么不识GUID_SysMouse呢?别的地方都正常的 |
|