hs1290
2007-07-24 22:45:08 UTC
I want to access a USB-HID device from Windows CE.
I added USB support from the catalog and added hid.dll to my project.bib
files section before building my SDK.
I created a basic VC++ project and added a call to HidD_GetHidGuid() with a
prototype from hid.dll, along with necessary header files.
The project will not compile (before I even connect to the device):
error LNK2019: unresolved external symbol _HidD_GetHidGuid referenced in
function "int __cdecl GetHID(void)" (?GetHID@@YAHXZ)
How can I add a reference to hid.dll to make this error go away? I tried
adding a [DllImport("hid.dll")] statement, but got an error: error C2337:
'DllImport' : attribute not found.
I added USB support from the catalog and added hid.dll to my project.bib
files section before building my SDK.
I created a basic VC++ project and added a call to HidD_GetHidGuid() with a
prototype from hid.dll, along with necessary header files.
The project will not compile (before I even connect to the device):
error LNK2019: unresolved external symbol _HidD_GetHidGuid referenced in
function "int __cdecl GetHID(void)" (?GetHID@@YAHXZ)
How can I add a reference to hid.dll to make this error go away? I tried
adding a [DllImport("hid.dll")] statement, but got an error: error C2337:
'DllImport' : attribute not found.