O'Reilly logo

Microsoft® .NET Compact Framework (Core Reference) by Mark Sutton, Rory MacLoed, Robert Burbidge, Stephen Wheelwright, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Serial Communications

Many recent handheld devices support IrDA or Bluetooth wireless technology to connect to another device, but for many devices, such as modems, bar code scanners, and GPS receivers or printers, RS-232 serial communication over a cable remains the only option. Unfortunately, there are no managed classes to access the serial port on the device, so to do this you must use the native API in the underlying Windows CE operating system. Use P/Invoke to call out to the methods in the native DLLs. Chapter 22,covers how to use P/Invoke, so we won’t explain it here but we will show you the structure definitions and external function call declarations that you need. For a detailed description of how to perform serial communications in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required