Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

May C# Guru - Spell Checking WinRT Component

$
0
0

Congratulations to Sachin S, our C# Guru winner for May 2013! To find all the competitors for May (and more information about this monthly contest), see the Wiki article: TechNet Guru Awards, May 2013.

  

Sachin S took the gold, with this contribution:

Spell Checking WinRT Component (C#, VB, HTML5/JavaScript) 

   

Here are our three winners for May:

Visual C# Technical Guru - May
2013

Gold Award Winner

 

Sachin
Spelling Check in Windows Store App
  • "This provides a good article layout. With a simple description about what it is, screenshot, and also a working sample for WinRT."

Silver Award Winner

 

Carsten
Siemens
How to Query Trees Using LINQ
  • "It is very concise and clear what is going on. There are not extra words or asides."
  • "The motivation really helps sell the context and set expectations."
  • "He took the time to call out possible shortcomings of this approach.  This is very useful to people trying to use this code."

Bronze Award Winner

 

chriga
Creating a simple plugin mechanism
  • "Excellent example of copying content in from MSDN Forums."
  • "A very useful subject and great article."

 

Here are excerpts from the article:

 

Description

It implements the component wrapper over Win32 SpellChecker library. A wrapper that it can be easily used by caller of Windows Store App irrespective of Application Language and without worrying about C++ and COM intricacies.

 
Spell checking client sample (C++) 
 

Also it needs to have spell checker provider installed. See the below link for more details

Spell checking provider sample

Internals

The functionality to check spellings is exposed by the ISpellCheckerFactory and ISpellChecker interface.

ISpellCheckerFactory interface
ISpellCheckerFactory : public IUnknown
{
public:
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SupportedLanguages(
/* [retval][out] */ __RPC__deref_out_opt IEnumString **value) = 0;

virtual HRESULT STDMETHODCALLTYPE IsSupported(
/* [in] */ __RPC__in LPCWSTR languageTag,
/* [retval][out] */ __RPC__out BOOL *value) = 0;

virtual HRESULT STDMETHODCALLTYPE CreateSpellChecker(
/* [in] */ __RPC__in LPCWSTR languageTag,
/* [retval][out] */ __RPC__deref_out_opt ISpellChecker **value) = 0;

};

  

---------------------------------------

 

Read the entire article here:

Spell Checking WinRT Component (C#, VB, HTML5/JavaScript)

 

Thanks again to Sachin S for a great contribution! You can read about all the May winners here: TechNet Guru Awards - May 2013

See the June contributions here: TechNet Guru Contributions - June 2013

 

Come on in, the Wiki is fantasmic!

   - Ninja Ed


Viewing all articles
Browse latest Browse all 34890

Trending Articles