Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-08-2007, 03:20 AM
njhartley@gmail.com
Newsgroup Contributor
 
Posts: n/a
Customer Recognizer


What is wrong with this:

WordList wordList = new WordList();

foreach (string s in strWords.Split('#'))
{
wordList.Add(s);
}

recognitionContext.WordList = wordList;
recognitionContext.Factoid = Factoid.WordList;

The line "recognitionContext.WordList = wordList;" fails with a "The
call is out of order". Value of strWords at the time is:

?strWords
"Cats#Dogs"

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-08-2007, 03:20 AM
  #2 (permalink)  
Old 05-08-2007, 06:30 AM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
RE: Customer Recognizer

Hi njhartley,

Setting the WordList property succeeds only if the Strokes property is null.
You must set the WordList property before you attach a Strokes collection to
the Strokes property of the RecognizerContext, or you must set the Strokes
property to null and then set the WordList property. See MSDN for details:

http://msdn.microsoft.com/library/de...s/wordlist.asp

So you will have to change your code like this:

foreach (string s in strWords.Split('#'))
{
wordList.Add(s);
}
recognitionContext.Strokes = null;
recognitionContext.WordList = wordList;
recognitionContext.Factoid = Factoid.WordList;
recognitionContext.Strokes = strokesToRecognize;

Thanks,
Stefan Wick


"njhartley******.com" wrote:

>
> What is wrong with this:
>
> WordList wordList = new WordList();
>
> foreach (string s in strWords.Split('#'))
> {
> wordList.Add(s);
> }
>
> recognitionContext.WordList = wordList;
> recognitionContext.Factoid = Factoid.WordList;
>
> The line "recognitionContext.WordList = wordList;" fails with a "The
> call is out of order". Value of strWords at the time is:
>
> ?strWords
> "Cats#Dogs"
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 05-09-2007, 09:20 AM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: Customer Recognizer

Also, the InkAnalyzer doesn't suffer from this limitation. You can create a
global AnalysisHint even while there are results already in the InkAnalyzer.

You can grab Ink Analyzer Explorer at www.einsteintech.net and explore its
capabilities.

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


"Stefan Wick[MS]" <StefanWickMS@discussions.microsoft.com> wrote in message
news:5A90FF90-CA34-403D-A10A-9997B4B98E12@microsoft.com...
> Hi njhartley,
>
> Setting the WordList property succeeds only if the Strokes property is
> null.
> You must set the WordList property before you attach a Strokes collection
> to
> the Strokes property of the RecognizerContext, or you must set the Strokes
> property to null and then set the WordList property. See MSDN for details:
>
> http://msdn.microsoft.com/library/de...s/wordlist.asp
>
> So you will have to change your code like this:
>
> foreach (string s in strWords.Split('#'))
> {
> wordList.Add(s);
> }
> recognitionContext.Strokes = null;
> recognitionContext.WordList = wordList;
> recognitionContext.Factoid = Factoid.WordList;
> recognitionContext.Strokes = strokesToRecognize;
>
> Thanks,
> Stefan Wick
>
>
> "njhartley******.com" wrote:
>
>>
>> What is wrong with this:
>>
>> WordList wordList = new WordList();
>>
>> foreach (string s in strWords.Split('#'))
>> {
>> wordList.Add(s);
>> }
>>
>> recognitionContext.WordList = wordList;
>> recognitionContext.Factoid = Factoid.WordList;
>>
>> The line "recognitionContext.WordList = wordList;" fails with a "The
>> call is out of order". Value of strWords at the time is:
>>
>> ?strWords
>> "Cats#Dogs"
>>
>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-10-2007, 06:50 AM
njhartley@gmail.com
Newsgroup Contributor
 
Posts: n/a
Re: Customer Recognizer


Thanks Stefan. That seems to work, but I will probably have more
questions on this.

Nick

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recognizer pack for the 2005 =?Utf-8?B?SmFub2g=?= Windows XP Tablet PC Newsgroup 2 12-17-2004 11:15 AM
Dutch Recognizer? =?Utf-8?B?R2VyYXJkIEJyYWFk?= Windows XP Tablet PC Newsgroup 2 12-12-2004 03:17 AM
Recognizer upgrade Tony Linguini Windows XP Tablet PC Newsgroup 1 10-27-2004 01:17 PM
Questions on MUI and Recognizer Pack Wilson Chin Windows XP Tablet PC Newsgroup 11 09-28-2004 07:51 AM
When will the tablet recognizer pack for SP2 come out? klasla@welho.com Windows XP Tablet PC Newsgroup 2 09-17-2004 01:28 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 12:38 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0