如何访问吧code扫描仪与VB.Net在Windows CE [英] How to Access Barcode Scanner with VB.Net in Windows CE

查看:242
本文介绍了如何访问吧code扫描仪与VB.Net在Windows CE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直要求制定的<一个应用程序href="http://www.motorola.com/Business/US-EN/Business+Product+and+Services/Micro+Kiosks/Micro+Kiosks/MK4000_US-EN"相对=nofollow>摩托罗拉MK4000 ,一个全功能于一身的设备内置了吧code扫描仪。它运行Windows CE和支持VB.Net。

I've recently been asked to develop an application for the Motorola MK4000, an all-in-one device with a built-in barcode scanner. It runs Windows CE and supports VB.Net.

我从来没有写的Windows CE的应用程序,也没有用吧code扫描仪。

I've never written an application for Windows CE, nor using a barcode scanner.

我熟悉VB.NET,所以我有信心,我可以算出来,但我希望有人能指出我如何使用的吧code扫描仪,可能还有一些例如$ C一些资源$如何检测,并从中读取数据c。

I'm familiar with VB.NET so I'm confident I can figure this out, but I was hoping someone could point me to some resources on how to use the barcode scanner with possibly some example code of how to detect it and read data from it.

感谢。

推荐答案

使用的Windows CE,你会写在.NET Compact Framework的应用程序。要做到这一点,你需要使用Visual Studio 2008专业版(2010年不与.NET CF工作)。因为它是.NET中,可以使用Visual Basic或C#中,无论你是最舒服的。是的,这是非常相似,你已经习惯用VB.NET。

With Windows CE, you'll be writing your application in the .NET compact framework. To do this, you'll need to use Visual Studio 2008 Professional (2010 doesn't work with the .NET CF). Since it's .NET, you can use Visual Basic, or C#, whatever you're most comfortable with. And yes, it's very similar to what you're already used to with VB.NET.

我建议再下载的Windows Mobile SDK的相应版本的Visual Studio安装。该SDK包含了一些样本,仿真器和库就需要开发Windows CE应用程序在VS 2008中。

I suggest then downloading the appropriate version of the Windows Mobile SDK for your Visual Studio installation. The SDK contains some samples, emulators, and libraries you'll need for developing Windows CE applications in VS 2008.

其次,蜡黄建议,去Symbol的网站并下载相应的开发工具包,为您的模型设备。这将包含必要的与扫描仪以及一些样品开发项目的接口的库。

Next, as Sallow suggested, go to Symbol's site and download the appropriate development kit for your model device. This will contain the libraries necessary for interfacing with the scanner as well as some sample development projects.

为了调试/争相效仿,你需要下载Windows Mobile设备中心。然后,您可以在VS2008启动仿真器(前提是你已经安装了Windows Mobile SDK),并连接到使用移动设备管理器,这些仿真器实例。下面是微软在如何做到这一点指南

In order to debug/emulate, you'll need to download Windows Mobile Device Center. You can then startup emulators in VS2008 (provided you've installed the Windows Mobile SDK), and connect to these emulator instances using the mobile device manager. Here's a guide from Microsoft on how to do this.

从此发展应该是pretty的简单。一旦你的所有设置,这里是一个很好的入门微软链接这帮助了我。对我来说,我是从下载的吧code扫描模式框架微软和使用的code与扫描仪沟通,因为它是相当良好的组织和编写。

Development from then on should be pretty straightforward. Once you're all setup, here's a good getting started link from Microsoft that helped me. For me, I downloaded the Barcode Scanner Pattern Framework from Microsoft and used that code to communicate with the scanner as it was fairly well organized and written.

由于您的吧code扫描仪内置到设备,您不必担心接口,如一些人所提到的。你只需要使用适当的符号库和订阅扫描器读取事件。再次,我建议微软吧code扫描模式的工厂作为一个地方开始这... ...祝你好运!

Since your barcode scanner is built-in to the device, you don't need to worry about interfaces as some have mentioned. You only need to use the appropriate Symbol libraries and subscribe to the scanner Read events. Again, I would suggest the Microsoft barcode scanner pattern factory as a place to start with this... Good luck!

这篇关于如何访问吧code扫描仪与VB.Net在Windows CE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆