还有点小问题就是,“Undefined symbol '_GUID_CLASS_USB_DEVICE' reference in TestUSB.c”这个错误还是存在,如果这个参数变为NULL,的话没有错误提示,但执行目的达不到,其他的几个错误只需要把setupapi.lib加到工程立即刻,但对于这个错误怎么解决啊?谢谢,盼复!!!
<>增加如下头文件:</P><>#include <Windows.h>
#include <usbioctl.h>
#include <setupapi.h>
#include <cfgmgr32.h> </P><>提示 错误如下:</P><P>“Undefined symbol '_GUID_CLASS_USB_DEVICE' reference in TestUSB.c”</P><P>“Undefined symbol '_CM_Get_DevNode_Status ' reference in TestUSB.c”</P><P>“Undefined symbol '_SetupDiEnumDeviceInfo' reference in TestUSB.c”</P><P>“Undefined symbol '_SetupDiDestroyDeviceInfoList' reference in TestUSB.c”</P><P>“Undefined symbol '_CM_Request_Device_Eject' reference in TestUSB.c”</P>