Home > Software engineering >  SetupDi letter of error function, the great god for help
SetupDi letter of error function, the great god for help

Time:11-01

1> Is the link...
1> LINK: didn't find D: \ \ my documents \ Visual Studio users directory 2008 \ Projects \ vidpid \ Debug \ vidpid exe or did not generate a delta LINK on it; Being executed completely link
1> GetVidPid. Obj: error LNK2019: cannot resolve the external symbol of __imp__SetupDiDestroyDeviceInfoList @ 4, the symbol referenced in the function _WinMain @ 16
1> GetVidPid. Obj: error LNK2019: cannot resolve the external symbol of __imp__SetupDiGetDeviceInterfaceDetailW @ 24, the symbol referenced in the function _WinMain @ 16
1> GetVidPid. Obj: error LNK2019: cannot resolve the external symbol of __imp__SetupDiEnumDeviceInterfaces @ 20, the symbol referenced in the function _WinMain @ 16
1> GetVidPid. Obj: error LNK2019: cannot resolve the external symbol of __imp__SetupDiGetClassDevsW @ 16, the symbol referenced in the function _WinMain @ 16
1> D: \ \ my documents \ Visual Studio users directory 2008 \ Projects \ vidpid \ Debug \ vidpid exe: fatal error LNK1120: four cannot resolve the external command
1> Generate log in "file://d:\ user directory \ my documents \ Visual Studio 2008 \ Projects \ vidpid \ vidpid \ Debug \ BuildLog HTM"

CodePudding user response:

Add a line

# pragma comment (lib, "Setupapi. Lib")

CodePudding user response:

Need to link the corresponding lib library file Setupapi. Lib

CodePudding user response:

It is recommended to use CxDeviceFind class to find the system equipment
http://www.cnblogs.com/EdmundDwyane/p/3161524.html
  • Related