I am developing an application for interfacing a USB device. When I compile my code I get the following errors. I had included "hidsdi.h" and "hid.lib" is downloaded and pasted in the local directory.
error LNK2019: unresolved external symbol _HidD_GetAttributes@8 referenced in function _main
error LNK2019: unresolved external symbol _HidD_GetHidGuid@4 referenced in function _connectToUSBDevice
Can anyone help me with this bug.
Pasting the hid.lib file in the local directory is not enough. You need to add the hid.lib to the link input.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)