C# Guru - Spell Checking WinRT Component (C#, VB, HTML5/JavaScript)
Congratulations to 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 .
Here are our three winners:
Visual C# Technical Guru - May 2013 |
|
Sachin | Spelling Check in Windows Store App |
|
|
Carsten Siemens | How to Query Trees Using LINQ |
|
|
chriga | Creating a simple plugin mechanism |
|
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 for a great contribution!
- User Ed
Comments
Anonymous
September 08, 2013
The comment has been removedAnonymous
September 04, 2014
Guru, is it for Windows RT?Anonymous
January 31, 2016
Computers Today (part 1 of 6) blogs.msdn.com/.../computers-today.aspx ..... CS SPOTLIGHT: Girls in computer programming... why it matters!!! blogs.msdn.com/.../cs-spotlight-girls-in-computer-programming-why-it-matters.aspx ... Computational Thinking - Videos & Papers by Jeannette Wing blogs.msdn.com/.../computational-thinking-videos-amp-papers-by-jeannette-wing.aspx