我希望开发一个简单的应用程序,用于Motorolo MC 9190 G移动设备。它内置了条形码扫描仪,我想扫描条形码并在消息框中显示它们。由于我没有这个手机,所以我必须在模拟器中测试它。当我在模拟器中部署代码时,会出现空指针异常错误。我的代码是:我添加了sample.barcode dll。
Private barcodeReader As Symbol.Barcode.Reader // error occurs here itself
barcodeReader = New Symbol.Barcode.Reader()
barcodeReader.Actions.Enable()
Dim nextReaderData As Symbol.Barcode.ReaderData = barcodeReader.GetNextReaderData()
MessageBox.Show(nextReaderData.Text)
我是一个新手,请帮助我,这与IT技术有关。