Datalogic .NET SDK

DecodeHandle (Constructor + 1 overload)

 

Syntax

 

   public DecodeHandle(int dcdNumber);

 

 

Class                           : DecodeHandle

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Constructor to Datalogic.API.DecodeHandle.

A file handle to the device specified by the dcdNumber parameter will be opened.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

int

dcdNumber

The device number of the decoding device that the handle will represent.

 

 

 

 

[on error]

Exception

 

Thrown when an error occurs opening the file handle to the decoder.

 

 

Example

   
    public
partial class Form1 : Form

    {

        private DecodeHandle hDcd;

        public Form1()

        {

            InitializeComponent();

            InitDecodeEngine();

        }

        public void InitDecodeEngine()

        {

            /* The dcdNumber starts from “1”. */

            int dcdNumber = 1;

            hDcd = new DecodeHandle(dcdNumber);
        }
        /* ... */

    }

 

 

 

See Also

Decoding System Overview, DecodeException (Class) , Example #001.

 

Copyright © Datalogic ADC. All Right Reserved