错误:找不到名称数据读取器 [英] error: name data reader cannot be found

查看:137
本文介绍了错误:找不到名称数据读取器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai,我为使用acanlogic cs-2030设备的条形码阅读器开发了一个代码.我的程序出现2个错误,第一个错误是:error 1 The type or namespace name ''Reader'' could not be found (are you missing a using directive or an assembly reference?),第二个错误是:error 2: The type or namespace name ''ReaderData'' could not be found (are you missing a using directive or an assembly reference?). 在这里我附加代码我有一个问题.请帮助我完成我的重要任务.我还将突出显示我的问题代码以供参考

Hai, i am developed a code for bar code reader which use acanlogic cs-2030 device .I my program i got 2 an error which is first error is: error 1 The type or namespace name ''Reader'' could not be found (are you missing a using directive or an assembly reference?) and second is : error 2: The type or namespace name ''ReaderData'' could not be found (are you missing a using directive or an assembly reference?). Here i attach code which i have a probleam.Please help me this my important assignment. I also highlight the my probleam code for your reference

public class SymbolBarcodeScanner : BarcodeScanner
            {
           private Reader symbolReader = null;
          private ReaderData symbolReaderData = null;

                public override bool Initialize()
                {
                  
                    if (symbolReader != null)
                        return false;

                   
                    symbolReader = new Reader();

                 
                    symbolReaderData = new ReaderData(ReaderDataTypes.Text,
                      ReaderDataLengths.DefaultText);

                   
                    symbolReader.ReadNotify += new EventHandler(symbolReader_ReadNotify);

                  
                    symbolReader.Actions.Enable();

                   
                    symbolReader.Parameters.Feedback.Success.BeepTime = 0;
                    symbolReader.Parameters.Feedback.Success.WaveFile =
                      "\\windows\\alarm3.wav";

                    return true;
                }

推荐答案

您缺少添加一些参考的信息.或者,如果您添加了参考,请尝试将using YourNamespace;添加到您的课程中.

You are missing to add some reference. Or if you have added a reference, try adding using YourNamespace; to your class.

Google[^] for more details.


如果您不知道要添加哪个名称空间,请执行一件事

将鼠标移至Reader的声明.

鼠标单击阅读器",然后单击向下箭头,将为您建议该阅读器的名称空间..

对不起,如果我误会你的话
if you dont know which namespace to add then do one thing

move your mouse to the declaration of Reader.

mouse click on "Reader", click down arrow it will suggest you the name spaces for that reader..

sorry if i misunderstad you


这篇关于错误:找不到名称数据读取器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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