예제 #1
0
        private int InitializeEngine()
        {
            int status = Hwr.Create("./license_key/license.key");

            if (inkObj == IntPtr.Zero)
            {
                inkObj = Hwr.CreateInkObject();
            }
            if (settingObj == IntPtr.Zero)
            {
                settingObj = Hwr.CreateSettingObject();
            }
            if (resultObj == IntPtr.Zero)
            {
                resultObj = Hwr.CreateResultObject();
            }
            Hwr.SetExternalResourcePath("./hdb");
            Hwr.SetRecognitionMode(settingObj, Hwr.MULTICHAR);
            Hwr.SetCandidateSize(settingObj, MAX_CANDIDATES);
            SetLanguage(Hwr.DLANG_MATH_MIDDLE_EXPANSION);
            Hwr.SetAttribute(settingObj);

            return(status);
        }