我正在尝试与嵌入了Windows 8的“霍尼韦尔Dolphin CT50”扫描仪进行交互。这是我使用的代码剪切,激活集成的条形码扫描器,但它没有按预期工作,DataReceived方法永远不会被叫。
顺便说一句,安装在设备上的Barcodescanner示例应用程序正在运行,因此条形码或扫描仪本身不会出现问题。
Dim c As DeviceInformationCollection = Await DeviceInformation.FindAllAsync(BarcodeScanner.GetDeviceSelector())
Dim scanner As BarcodeScanner = Await BarcodeScanner.FromIdAsync(c(0).Id)
Me._scanner = Await scanner.ClaimScannerAsync()
AddHandler Me._scanner.DataReceived, AddressOf DataReceived