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:
Image may be NSFW. Clik here to view. ![]() | Visual C# Technical Guru - May 2013 |
Image may be NSFW.
| Sachin | Spelling Check in Windows Store App |
|
Image may be NSFW.
| Carsten Siemens | How to Query Trees Using LINQ |
|
Image may be NSFW.
| 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
Image may be NSFW.
Clik here to view.
Internals
The functionality to check spellings is exposed by the ISpellCheckerFactory and ISpellChecker 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:
Thanks again to Sachin for a great contribution!
- User Ed
Image may be NSFW.Clik here to view.