连接到扫描仪 [英] Connecting to a Scanner

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

问题描述

大家好,

我有问题,请您帮忙.
我有连接到扫描仪的API,扫描仪通过usb电缆连接到计算机.它不会显示为USB,而是显示为COM端口.

现在,我想与扫描仪进行对话,以便它将存储在扫描仪中的数据转储到机器上的某个位置.

请你能帮帮我.

以下是API的代码.

Hi Guys,

I have a problem and asking for your help.
I have this API that connects to a Scanner, the Scanner is connected to a machine via a usb cable. It doesn''t appear on as USB but as a COM port.

Now i want to talk to the scanner so that it dumps the data that is stored in it in a location on the machine.

Please can you help me.

Below is the code for the API.

/// <summary>
       /// Filter out custom messages
       /// </summary>
       /// <param name="m">Message value - cannot be changed</param>
       /// <returns>false = messages will be prosessed by the appliction, true = message will be deleted and
       /// not processed</returns>
       public bool PreFilterMessage(ref Message m)
       {
           bool res = false;//by default allow the message to be dispatched to the rest of the app
           try
           {
               if (m.Msg == fCustomMSGHandle && m.Msg <= fCustomMSGHandle)
               {
                   if (fCallback!=null)
                   {
                       fCallback(m.Msg, (int)m.WParam, (int)m.LParam, (int)m.HWnd.ToInt32());
                   }
                   res = true;
               }
           }
           catch (Exception)
           {
               res = false;
           }
           return res;
       }




这是我很烂的地方. :-)请您能帮忙吗?

亲切的问候,
Ndeza,




this is where i get suck. :-) Please can you assist?

Kind Regards,
Ndeza,

推荐答案

在使用非标准设备和组件时,我们无能为力,因为我们无法访问正在使用的设备和组件. .

唯一的建议是与供应商联系以获取更多信息和故障排除.
There is very little we can help you with when you are using non-standard devices and components as we do not have access to what you are working with.

The only advise is to contact your supplier for further information and troubleshooting.


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

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