public static bool recoLearnWord( String word, int weight ) { bool result = false; IntPtr w = Marshal.StringToCoTaskMemUni( word ); result = HWR_LearnNewWord( recoHandle, w, (UInt16)weight ) == 0 ? false : true; return result; }