H21

Revision as of 28 October 2010 14:19 by smcghee (Comments | Contribs) | (FAQ) m

Downloads

Support Platforms

Setup & Configuration

Usage

Upgrading

SDK

FAQ

I want to add the default Windows Mobile camera interface to my .NET app, so that users can take pictures. How do I do that?

This is easily accomplished by using the Microsoft.WindowsMobile.Forms namespace in your .NET application, and using the CameraCaptureDialog class. You can use an instance of the class to show a dialog that provides exactly the same interface you'd find if you opened the camera from OS. Note that the Microsoft.WindowsMobile.Forms DLL is not part of the .NET Compact Framework by default, and is not present on the H21 by default; you must add it as a reference to your .NET application, and deploy it with your application.

Does the H21 SDK have classes to manage and communicate via the IrDA port?

No it doesn't - Microsoft has already included classes in the .NET Compact Framework to deal with IrDA communication. See the System.Net.IrDA namespace.

Universal Menu Book commands that deal with symbology options return false when sent with the BarcodeDecoder.SendCommand() method. What's going on?

This behavior is actually by design, because it’s configurable through a different interface.
If you bring up the ScannerManager app, and go to the Code Options tab, you can hold down the stylus on a symbology and bring up an options page for that symbology. You're able to set different symbology options there.
In code, say you wanted to send the leading check digit of UPCE codes (menu book code 'E6') to distinguish between UPCE0 and UPCE1. You would do this:
BarcodeReader.BCRSettings.CodeOptions[SYMBOLOGY_ID.CODE_UPC_E].dwTransmitCD = BCR_CODE_OPTIONS_TRANSMITCD.BCR_UPC_LEADING0_TRANSMITCD

OS Release Log

Links