如何从windows ce / .net cf项目中的motorola / symbol条形码扫描仪接受扫描 [英] How to get accept scans from motorola/symbol barcode scanners in windows ce / .net cf projects

查看:123
本文介绍了如何从windows ce / .net cf项目中的motorola / symbol条形码扫描仪接受扫描的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Windows CE 6.0 OS设备开发应用程序,即条码扫描器设备从扫描仪获取数据并将其保存在数据库中。

我想做什么

接受来自Windows CE / .NET CF项目中摩托罗拉/符号条码扫描器的扫描



我尝试过:



我想为Windows CE 6.0 OS设备开发应用程序,即扫描数据Getfron扫描仪并将其保存在DB中。

I want To Develope an application for Windows CE 6.0 OS Device i.e. Barcode scanner Device the Data Get from Scanner and save it in DB.
I want to do
Accept Scans from Motorola/Symbol Barcode Scanners in Windows CE / .NET CF Projects

What I have tried:

I want To Develope an application for Windows CE 6.0 OS Device i.e. scanner the Data Getfron Scanner and save it in DB.

推荐答案

回答这个对于快速回答来说太全面了。



但这里有一些提示:



  • 阅读扫描仪手册和应用笔记(如果有)。
  • 了解扫描仪使用的界面以及如何使用C#访问该界面。
  • 了解数据库设计。
  • 了解如何使用C#访问选择的数据库引擎。
Answering this would be far too comprehensive for "Quick Answers".

But here are some tips:

  • Read the manual of the scanner and application notes if available.
  • Read about the interface used by the scanner and how to access that interface with C#.
  • Read about database design.
  • Learn how to access the choosen database engine with C#.


正如Jochen所说,这不是'这是一个很好的问题的论坛。特别是关于使用数据库的部分 - 你应该只阅读CodeProject上的一些文章,有很多。



但是,这里有你从条形码扫描仪阅读的选项:



1)USB条码扫描器将具有键盘仿真功能。这意味着,扫描的条形码将出现在您当前的输入光标处,就好像您已将数字/字符串手动键入键盘一样。所以你可以只有一个文本输入控件,如果它是输入来自的键盘或条形码扫描器,就不要打扰。优点:最容易设置。缺点:当用户想要扫描条形码时,您必须注意文本输入控件始终具有输入焦点。



2)条形码的制造商扫描仪MIGHT有一个API。对于低预算扫描仪,通常没有。优点:输入控制没有问题。缺点:您将应用程序限制为一种类型(或某些类型)的条形码扫描仪。比1)更多的工作



3)使用WindowsRaw Input API。在此CodeProject文章中进行了解释和演示:使用来自的原始输入C#处理多个键盘 [ ^ ]

优点:输入控件没问题。供应商特定的API没有问题。缺点:比1)更多的工作
As Jochen said, this isn't a good question for this forum. Especially the part about using a database - you should just read some articles here on CodeProject, there are many.

However, here are your options for reading from a barcode scanner:

1) A USB-barcode scanner will have keyboard emulation. Meaning, a scanned barcode will appear at your current input cursor as if you've typed the number/string manually into a keyboard. So you could just have a text input control and just don't bother if it's a keyboard or barcode scanner where the input comes from. Advantage: Easiest to set up. Disadvantage: You have to take care that the text input control always has the input focus when the user might want to scan a barcode.

2) The manufacturer of your barcode scanner MIGHT have an API for it. For low budget scanners there are most often none. Advantage: No trouble with an input control. Disadvantage: You're limiting your application to one type (or certain types) of barcode scanner. More work than for 1)

3) Use the Windows "Raw Input API". Explained and demonstrated in this CodeProject article: Using Raw Input from C# to handle multiple keyboards[^]
Advantage: No trouble with an input control. No trouble with vendor specific API's. Disadvantage: More work than for 1)


这篇关于如何从windows ce / .net cf项目中的motorola / symbol条形码扫描仪接受扫描的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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