Getting started with Pocket PC 2003 and Bytescout.BarCode Reader SDK for .NET 2.00 or higher

  • Home
  • /
  • Articles
  • /
  • Getting started with Pocket PC 2003 and Bytescout.BarCode Reader SDK for .NET 2.00 or higher

Bytescout BarCode Reader SDK provides support for .NET Framework 2.00 (desktop and ASP.NET server) and Compact Framework .NET 2.00 for Pocket PC and Windows CE / WinMobile

This sample including full source code for the Pocket PC 2003 project is available in trial version of the SDK

Hint: to copy image files into the device use File | “Configure..” menu in Pocket PCemulator and set shared folder to the folder on your desktop computer. This folder will be mounted as a flash card to the Pocket PC 2003 emulated device.

Sample input image for barcode recognition:
barcode pocket pc

Barcode decoding on Windows CE (in emulator):
barcode reader pocket pc

Form1.cs:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using Bytescout.BarCodeReader;

namespace GUITest.WinCE
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void buttonBrowse_Click(object sender, EventArgs e)
{
textBoxResult.Text = “”;

DialogResult result = openFileDialog.ShowDialog();
if (result == DialogResult.OK)
{
string fileName = openFileDialog.FileName;

Reader reader = new Reader(“support@bytescout.com”, “3ADC-EF29-95B5-6C09-5B7”);
reader.ReadFrom(fileName);

if (reader.FoundBarcodes.Length != 0)
{
foreach (FoundBarcode barcode in reader.FoundBarcodes)
textBoxResult.Text += String.Format(“Type ‘{0}’ and value ‘{1}’ “, barcode.Type, barcode.Value);
}
else
textBoxResult.Text = “No barcodes found”;
}
}
}
}

prev
next