Anthony McGary

I am developing a Smart Device Application in Microsoft Visual Studio 2005 that will run on a Symbol Handheld Device (Model: MC50). I was wondering if anybody knows the class or reference or toolbox control .NET uses to handle barcode scans. I am unable to determine the barcode scan event. I want to be able to scan a barcode capture the value, manipulate the value in the application, display the scanned value, and then write the value to a internal table. Any help or suggestions would be greatly appreciated.



Re: .NET Compact Framework Barcode Scanning in Smart Device Applications for Windows Mobile 5.0 devices

timg_msft

.NETCF does not have any built-in classes to deal directly with barcode scanners. Our recommendation is to contact the hardware manufacturer to determine how and when to capture bar codes. You may be able to do this via the Serial Port classes or you may need to PInvoke to native code.




Re: .NET Compact Framework Barcode Scanning in Smart Device Applications for Windows Mobile 5.0 devices

Anthony McGary

Developing in Visual Studio makes this process really easy. First, if you are developing for Windows 5.0 pocket pc download the Windows Mobile 5.0 Pocket PC SDK. Next, download the Symbol Mobility Developer Kit v1.4 for .NET if the device you are developing for is a Symbol brand device. Once you download the SMDK v1.4 for .NET it will automatically install the Tools in the Toolbox of VS 2005. Launch VS 2005 and you should see the Barcode scanner, Imager, etc. Symbol tools in the Toolbox.



Re: .NET Compact Framework Barcode Scanning in Smart Device Applications for Windows Mobile 5.0 devices

jeremysena

One thing to consider is device portability. I also develop for Symbol devices but I try to support a variety of manufacturers.

There are two main ways to do this:

- Download all of the supported manufacturer's SDKs and use conditional compilation to enable the particular library. The downside to this is that some manufacturers may not be taken into account. You will need to create a generic/no-SDK build also to support manufacturers for which you do not have the SDK, or for the case where they run the app on a device without a scanner.

- Have the scanner enabled external to your application via a wedge. For example, there is a little program called scanwedge.exe for Symbol devices that simply enables the scanner. Then when your app runs, any scans are simply typed into the focused control. Scanning and keyboard entry would look the same from your app's point of view. There are also open source wedges out there...

For Symbol devices I generally use the second method because it is easier to develop. Then just use scanwedge.





Re: .NET Compact Framework Barcode Scanning in Smart Device Applications for Windows Mobile 5.0 devices

Finkster

For my applications, I have created a "Proxy" control that will try to detect the device the application is installed on.  This "Proxy" control will fire its own event when a scan takes place.   By using this proxy, you can code your application to one interface, then let the proxy worry about the device specifics.  As you add new hardware, you don't need to putz around with the business logic.

If the users of your application are going to depend on having the scanner read a barcode, then I would try to avoid any "Wedge" software simply because you can not be sure the device will always have the wedge loaded.   In the case of the Symbol (now Motorola) 9090x, the wedge is a bit flakey.





Re: .NET Compact Framework Barcode Scanning in Smart Device Applications for Windows Mobile 5.0 devices

zandrosantos

Download the SMDK 1.5 .NET (current released version) from SYMBOL.. currently bought by motorola. The file should be in the developer Zone section, download section. They provide a number of samples that you can use.

Just to let you know that there are issues with the .NET SMDK. You will eventually encounter a SCAN_Enable error at some point. No resolution at this point except to do a soft reset. Let me know if you need additional help.

zandro