
6.5 Example WinCE Application – Escape Commands Version
The following code sample describes an example WinCE application that will generate some simple
output on the printer. The application assumes that a Bluetooth connection has been established
between the handheld and the printer. The application therefore prints to a (virtual) serial port.
The application is available as part of the documentation pack, and is provided in source and
compiled form. A suitable project file is also supplied to enable the code to be compiled using
Microsoft Embedded Visual C 4.0 (eVC4). eVC4 is available for free download from Microsoft's
internet site.
6.5.1 Source Code
#include <Windows.h>
#include "resource.h"
#include <string.h>
#define SERIAL_PORT
L"COM7:"
#define ERROR_TEXT
TEXT("Error")
static HANDLE ReadThreadHandle = NULL;
static HANDLE SerialChannel = INVALID_HANDLE_VALUE;
// --------------------------------------------------------------------------------------
// This gets called for every byte received
static void ProcessSerialChar(unsigned char Char)
{
// Do nothing with them at the moment
}
// --------------------------------------------------------------------------------------
Содержание Pro60
Страница 1: ...Blackroc Pro60 Thermal Printer Programming Manual March 2007 V1 4 ...
Страница 21: ...DeleteObject BitmapHandle return TRUE ...
Страница 24: ...Windows Mobile 2003 ...
Страница 25: ......
Страница 26: ...Alphabetical Index ...