MIL_ID SysId, | //in |
MIL_INT64 ContextType, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContextDmrIdPtr | //out |
This function allocates a SureDotOCR context on the specified system. A SureDotOCR context contains information required to use the MIL SureDotOCR functions, which are prefixed with Mdmr; these functions allow you to read strings of dot-matrix text. Global settings, fonts, and string models are all held in a SureDotOCR context; use MdmrControl(), MdmrImportFont(), and MdmrControlStringModel() to set these up, respectively. Use MdmrRead() to perform the actual read operation. To read successfully, a SureDotOCR context must have at least one font and one string model.
A SureDotOCR context internally handles characters in Unicode, though you can program in both a Unicode or ASCII environment.
When the context is no longer required, release its memory using MdmrFree().
Specifies the identifier of the system on which to allocate the SureDotOCR context. Set this parameter to one of the values below:
For specifying the system identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the type of context to allocate. Set this parameter to the value below:
For specifying the type of context to
allocate
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DOT_MATRIX |
Specifies to allocate a MIL SureDotOCR context. |
Header | Include mil.h. |
Library | Use mil.lib; mildmr.lib. |
DLL | Requires mil.dll; mildmr.dll. |