Performing Handwriting Recognition

The process of handwriting recognition requires your application to use the handwriting application programming interface (API) to accomplish the following sequence of events.

    To start and end a handwriting recognition session

  1. Call HwxConfig to initialize the recognition engine for your application.

    This occurs only once for any specified application.

  2. Create an HRC object by using HwxCreate.
  3. Define the box or boxes used for processing user input by using HwxSetGuide.
  4. Define recognition criteria by using HwxALCValid and HwxALCPriority.
  5. Pass the previously-recognized character, if one exists, to the HRC with HwxSetContext.
  6. Call HwxInput to send ink data to the HRC as the user writes.
  7. Use HwxProcess to pass the HRC to the recognition engine for processing.

    Note Repeat step 7 for each input stroke when performing partial recognition.

  8. Call HwxResultsAvailable to obtain the number of recognized characters.
  9. Get the recognition engine results with HwxGetResults.
  10. Invalidate the current HRC with HwxDestroy to complete the recognition process.