The RC Structure

The core of the recognition process in version 1.0 was the RC data structure. The structure still exists in version 2.0, but it is made obsolete by the HRC object that governs the recognition process. An application can still use an RC structure when calling the obsolete version 1.0 functions ProcessWriting, InitRC, Recognize, and RecognizeData.

The following table lists the members of the RC structure. For each member, the second column describes the corresponding services in version 2.0 of the Pen API. Use this table to update your version 1.0 applications to use the new services. See the reference chapters in Part 2 for descriptions of the functions, messages, and constants cited in the table.

RC member
Equivalent service in Pen API 2.0
hrec
Return value from InstallRecognizer.
hwnd
PE_SETTARGETS message. (See "Step 2: PE_SETTARGETS Message" in Chapter 2.)
wEventRef
Return value from GetMessageExtraInfo. (See sample code in "InputWndProc" in Chapter 7.)
wRcPreferences
ConfigHREC with WCR_GETHAND or WCR_SETHAND.
lRcOptions
Various HRC functions described in Chapters 5 and 8.
lpfnYield
Not applicable in version 2.0.
lpUser
GetPenMiscInfo with PMI_USER. Cannot set new user in version 2.0.
wCountry
GetInternationalHRC or SetInternationalHRC.
wIntlPreferences
ConfigHREC with WCR_GETANSISTATE or WCR_SETANSISTATE.
lpLanguage
GetInternationalHRC or SetInternationalHRC.
rglpdf
Not applicable in version 2.0.
wTryDictionary
Not applicable in version 2.0.
clErrorLevel
Not applicable in version 2.0.
alc
GetAlphabetHRC or SetAlphabetHRC. (See "Specifying an Alphabet Set" in Chapter 8.)
alcPriority
GetAlphabetPriorityHRC or SetAlphabetPriorityHRC. Also ConfigHREC with WCR_GETALCPRIORITY or WCR_SETALCPRIORITY.
rgbfAlc
GetAlphabetHRC or SetAlphabetHRC.
wResultMode
Not applicable in version 2.0.
wTimeOut
GetPenMiscInfo or SetPenMiscInfo with PMI_TIMEOUT.
lPcm
rectBound
rectExclude
These three members are replaced by PE_GETPCMINFO message. (See "Step 3: PE_GETPCMINFO Message" in Chapter 2.)
guide
GetGuideHRC or SetGuideHRC.
wRcOrient
Not applicable in version 2.0.
wRcDirect
ConfigHREC with WCR_GETDIRECTION or WCR_SETDIRECTION.
nInkWidth
rgbInk
These two members are replaced by GetPenMiscInfo and SetPenMiscInfo with PMI_PENTIP.
dwAppParam
Determined by recognizer.
dwDictParam
Not applicable in version 2.0.
dwRecognizer
Determined by recognizer.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database