|
List of Exported Functions
Technically, an application does not call directly into a recognizer's
exported functions, though the distinction is not important to the recognizer.
Instead, all calls go to the system, which acts as a switchboard to route the calls to
the proper recognizer when more than one recognizer is installed. For example,
when an application loads a recognizer with InstallRecognizer, that recognizer exports functions with the same name as those exported by
other recognizers, including the default recognizer. The system automatically
transfers calls to the correct recognizer based on the HRC argument or other value that identifies the intended recipient.
As a DLL, a recognizer must export functions to the pen system that installs
the recognizer. This section lists these recognition functions, describes their purpose, and identifies them as required or
optional.
The optional functions that a recognizer should provide depend on the clients
it will serve. Commonly, a recognizer DLL is part of an application package
designed only for that application. As author of both client application and its
private DLL, the developer need write only those functions the application
requires. In this case, the developer is also free to design other functions not
specified by the Pen API.
At the other extreme, some recognizers serve client applications
indiscriminately. For example, a developer might market a recognizer of foreign script to
various application developers with international product lines. A recognizer can
also take on the role of system default recognizer, in which case it must:
- Export all recognizer functions.
- Recognize letters, punctuation, numbers, and predefined gestures from ink data.
- Associate raw data with matched results.
- Return characters only within the requested subset.
- Return an "I don't know" response when appropriate.
A system default recognizer should support all recognizer functions, not
merely export stub versions of the optional functions. At the very least, the
recognizer must return an HRCR_UNSUPPORTED value from functions it does not support.
For a description of how to specify the system recognizer through the registry,
see Appendix A, "Differences Between Versions 1.0 and 2.0 of the Pen
Application Programming Interface."
The following sections describe all 47 recognition functions of the Pen API
version 2.0. The lists of functions represent the following categories:
- Initialization
- HRC functions
- HRCRESULT functions
- Alphabet support
- Word lists
- Training
All recognizers must export 13 required functions, which are indicated by
asterisks in the following tables. The functions without asterisks are optional for
a recognizer. Each table corresponds to one of the categories listed
previously, with functions arranged in alphabetic order within the table.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|