C#和扫描仪probs ... [英] C# and scanner probs...

查看:85
本文介绍了C#和扫描仪probs ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,


我想知道你是否可以请我提供一些关于如何获得

来解决这个问题的想法。


[场景]

符号MC9000-k,Pocket PC 2003 ...我用扫描仪应用程序写了,

数据是当用户执行某些操作时加载到ArrayList结构中。

此列表包含当前接受的条形码编号列表。

最后,我手中有一个手动输入按钮用户可以申请
的应用程序(如果条形码被损坏),手动输入条形码编号。

然后将输入的数据传递到相同的函数中在扫描后被称为




[问题]

有时扫描仪会进入一种返回错误的模式说

当我们知道扫描的任何条形码都没有在数据列表中找到

是。通过手动输入条形码编号证明这一点,

正确地按照您的预期记录条形码。

如果应用程序重新启动,突然扫描适用于所有条形码

您期望的数据。


正如我所提到的,手动输入和扫描,调用相同的程序...

当出现扫描仪错误消息时,扫描的条形码显示为

,这看起来是正确的!?!?

这完全是我的头脑和任何帮助真的很好

赞赏。


谢谢。


Dan。

Hey guys,

I wonder if you could please provide me with some ideas as to how to get
around this problem.

[Scenario]
Symbol MC9000-k, Pocket PC 2003... With a scanner application I''ve written,
data is loaded into ArrayList structures when the user performs some action.
This list contains a list of barcode numbers that are currently accepted.
Finally, there is a manual entry button in my application where the user can
(if the barcode is damaged for example), manually put in the barcode number.
This then passes the entered in data into the same function that is called
after a scan.

[Problem]
Some times the scanner gets into a mode where it returns an error saying
that any barcode scanned is not found in the list of data when we know it
is. This is proved by manually entering in the barcode number which
correctly registers the barcode as you''d expect.
If the application is restarted, suddenly scanning works with all barcode
data you''d expect.

As I mentioned, the manual entry, and scanning, call the same procedure...
When the scanner error message appears, the barcode that was scanned is
displayed and this appears correct!?!?
This is thoroughly doing my head in and any help would really be
appreciated.

Thanks.

Dan.

推荐答案

<" Dan = o\)" < danielbass [at] postmaster [dot] co [dot] uk>>写道:
<"Dan =o\)" <danielbass [at] postmaster [dot] co [dot] uk>> wrote:
我想知道你是否可以请我提供一些关于如何解决这个问题的想法。

[情景]
符号MC9000-k,Pocket PC 2003 ...我写过扫描仪应用程序,当用户执行某些操作时,数据被加载到ArrayList结构中。
此列表包含条形码编号列表目前已被接受。
最后,我的应用程序中有一个手动输入按钮,用户可以(例如,如果条形码损坏),手动输入条形码编号。
这样将输入的数据传递给扫描后调用的同一个函数。

[问题]
有时扫描仪进入一个模式,它返回错误说<当我们知道扫描时,任何扫描的条形码都没有在数据列表中找到
。通过手动输入条形码来证明这一点,该条形码编号正确地记录了您期望的条形码。
如果应用程序重新启动,突然扫描可以处理所有条形码数据。 d expect。

正如我所提到的,手动输入和扫描,调用相同的程序......
当出现扫描仪错误信息时,扫描的条形码是
显示,这看起来是正确的!?!?
I wonder if you could please provide me with some ideas as to how to get
around this problem.

[Scenario]
Symbol MC9000-k, Pocket PC 2003... With a scanner application I''ve written,
data is loaded into ArrayList structures when the user performs some action.
This list contains a list of barcode numbers that are currently accepted.
Finally, there is a manual entry button in my application where the user can
(if the barcode is damaged for example), manually put in the barcode number.
This then passes the entered in data into the same function that is called
after a scan.

[Problem]
Some times the scanner gets into a mode where it returns an error saying
that any barcode scanned is not found in the list of data when we know it
is. This is proved by manually entering in the barcode number which
correctly registers the barcode as you''d expect.
If the application is restarted, suddenly scanning works with all barcode
data you''d expect.

As I mentioned, the manual entry, and scanning, call the same procedure...
When the scanner error message appears, the barcode that was scanned is
displayed and this appears correct!?!?




扫描仪返回数据的格式是什么?你能有一些

的尾随空格,或类似的东西吗?


-

Jon Skeet - < sk ** *@pobox.com>
http://www.pobox.com/~双向飞碟

如果回复小组,请不要给我发邮件



What format does the scanner return the data is? Could you have some
trailing spaces, or something like that?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Jon,


当符号库通过数据时,它只是在一个字符串中,并且

我之前确认它的字符串与你期望的相同。没有

空格预先/附加条形码...


如何在一分钟内无法正常工作,然后在应用后工作正常

重启?!?! ** 8-&


符号开发支持很好,不存在。


Dan。

Jon Skeet [C#MVP]" < SK *** @ pobox.com>在消息中写道

新闻:MP ************************ @ msnews.microsoft.c om ...
Jon,

By the time the symbol library passes by the data it''s just in a string, and
I confirmed it earlier that the string is identical to what you''d expect. No
spaces pre/appending the barcode...

How can it not work one minute, then work fine the next after a app
restart?!?! **8-&

And symbol dev support is well, non-existent.

Dan.
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
<" Dan = o\)" < danielbass [at] postmaster [dot] co [dot] uk>>写道:
<"Dan =o\)" <danielbass [at] postmaster [dot] co [dot] uk>> wrote:
我想知道你是否可以请我提供一些关于如何解决这个问题的想法。

[情景]
符号MC9000-k,Pocket PC 2003 ...我已经编写了一个扫描仪应用程序,当用户执行一些动作时,数据被加载到ArrayList结构中。
这个list包含当前接受的条形码编号列表。
最后,我的应用程序中有一个手动输入按钮,用户可以
(如果条形码损坏,例如),手动放入条形码
号码。
然后将输入的数据传递给扫描后调用
的相同功能。

[问题]
有时扫描仪会进入一种模式,它会返回一个错误,说明当我们知道扫描时,扫描的任何条形码都没有在数据列表中找到
。通过手动输入条形码来证明这一点,该条形码编号正确地记录了您期望的条形码。
如果应用程序重新启动,突然扫描可以处理所有条形码数据。 d expect。

正如我所提到的,手动输入和扫描,调用相同的程序......
当出现扫描仪错误信息时,扫描的条形码是
显示,这看起来是正确的!?!?
I wonder if you could please provide me with some ideas as to how to get
around this problem.

[Scenario]
Symbol MC9000-k, Pocket PC 2003... With a scanner application I''ve
written,
data is loaded into ArrayList structures when the user performs some
action.
This list contains a list of barcode numbers that are currently accepted.
Finally, there is a manual entry button in my application where the user
can
(if the barcode is damaged for example), manually put in the barcode
number.
This then passes the entered in data into the same function that is
called
after a scan.

[Problem]
Some times the scanner gets into a mode where it returns an error saying
that any barcode scanned is not found in the list of data when we know it
is. This is proved by manually entering in the barcode number which
correctly registers the barcode as you''d expect.
If the application is restarted, suddenly scanning works with all barcode
data you''d expect.

As I mentioned, the manual entry, and scanning, call the same
procedure...
When the scanner error message appears, the barcode that was scanned is
displayed and this appears correct!?!?



扫描仪返回数据的格式是什么?你能有一些
尾随空格,或类似的东西吗?

- Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复小组,请不要给我发邮件



What format does the scanner return the data is? Could you have some
trailing spaces, or something like that?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too



<" Dan = o\)" < danielbass [at] postmaster [dot] co [dot] uk>>写道:
<"Dan =o\)" <danielbass [at] postmaster [dot] co [dot] uk>> wrote:
当符号库通过数据传递它时,它只是在一个字符串中,并且我之前确认它的字符串与您期望的相同。没有
空格预先/附加条形码...


你是如何确认的?可能还有空格以外的东西 - 例如,
字符。


我不相信方法会知道字符串的来源,所以如果

相同字符串在手动输入模式下工作,我不相信它实际上是相同的字符串。

一分钟怎么能不工作,然后工作正常在应用程序重启后接下来?!?! ** 8-&
By the time the symbol library passes by the data it''s just in a string, and
I confirmed it earlier that the string is identical to what you''d expect. No
spaces pre/appending the barcode...
How did you confirm that? There may be things other than spaces - nul
characters, for example.

I don''t believe a method will know where a string comes from, so if
"the same" string works in manual entry mode, I don''t believe it''s
actually the same string.
How can it not work one minute, then work fine the next after a app
restart?!?! **8-&




嗯,这是另一回事 - 如果扫描仪*已*开始

包括一些虚假数据,然后重置东西很可能会产生一个

的差异。


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet

如果回复小组,请不要给我发邮件



Well, that''s a different matter - if the scanner *has* started
including some bogus data, then resetting things could well make a
difference.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


这篇关于C#和扫描仪probs ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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