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:
Here are our three winners for May:
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 : 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 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