|
现象为
Deleting intermediate files and output files for project 'HidKbdUser - Win32 Debug'.
--------------------Configuration: HidKbdUser - Win32 Debug--------------------
Compiling resources...
Compiling...
HidKbdUser.cpp
Linking...
HidKbdUser.obj : error LNK2001: unresolved external symbol "unsigned char __stdcall HidD_FreePreparsedData(struct _HIDP_PREPARSED_DATA *)" (?HidD_FreePreparsedData@@YGEPAU_HIDP_PREPARSED_DATA@@@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "void __stdcall HidD_GetHidGuid(struct _GUID *)" (?HidD_GetHidGuid@@YGXPAU_GUID@@@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "long __stdcall HidP_GetSpecificButtonCaps(enum _HIDP_REPORT_TYPE,unsigned short,unsigned short,unsigned short,struct _HIDP_BUTTON_CAPS *,unsigned short *,struct _HIDP_PREPARSED_DATA *)" (?H
idP_GetSpecificButtonCaps@@YGJW4_HIDP_REPORT_TYPE@@GGGPAU_HIDP_BUTTON_CAPS@@PAGPAU_HIDP_PREPARSED_DATA@@@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "long __stdcall HidP_GetCaps(struct _HIDP_PREPARSED_DATA *,struct _HIDP_CAPS *)" (?HidP_GetCaps@@YGJPAU_HIDP_PREPARSED_DATA@@PAU_HIDP_CAPS@@@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "unsigned char __stdcall HidD_GetPreparsedData(void *,struct _HIDP_PREPARSED_DATA * *)" (?HidD_GetPreparsedData@@YGEPAXPAPAU_HIDP_PREPARSED_DATA@@@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "unsigned char __stdcall HidD_GetAttributes(void *,struct _HIDD_ATTRIBUTES *)" (?HidD_GetAttributes@@YGEPAXPAU_HIDD_ATTRIBUTES@@@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "long __stdcall HidP_UsageListDifference(unsigned short *,unsigned short *,unsigned short *,unsigned short *,unsigned long)" (?HidP_UsageListDifference@@YGJPAG000K@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "long __stdcall HidP_GetUsagesEx(enum _HIDP_REPORT_TYPE,unsigned short,struct _USAGE_AND_PAGE *,unsigned long *,struct _HIDP_PREPARSED_DATA *,char *,unsigned long)" (?HidP_GetUsagesEx@@YGJW4
_HIDP_REPORT_TYPE@@GPAU_USAGE_AND_PAGE@@PAKPAU_HIDP_PREPARSED_DATA@@PADK@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall HidP_MaxUsageListLength(enum _HIDP_REPORT_TYPE,unsigned short,struct _HIDP_PREPARSED_DATA *)" (?HidP_MaxUsageListLength@@YGKW4_HIDP_REPORT_TYPE@@GPAU_HIDP_PREPARSED_
DATA@@@Z)
HidKbdUser.obj : error LNK2001: unresolved external symbol "long __stdcall HidP_SetUsages(enum _HIDP_REPORT_TYPE,unsigned short,unsigned short,unsigned short *,unsigned long *,struct _HIDP_PREPARSED_DATA *,char *,unsigned long)" (?HidP_SetUsages@@YG
JW4_HIDP_REPORT_TYPE@@GGPAGPAKPAU_HIDP_PREPARSED_DATA@@PADK@Z)
Debug/HidKbdUser.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.
HidKbdUser.exe - 11 error(s), 0 warning(s)
前提是已安装了DDK,SDK等,且已#include "C:\WINDDK\2600.1106\inc\wxp\setupapi.h"
#include "C:\WINDDK\2600.1106\inc\wxp\hidsdi.h"
求解... |
|