Answered by:
Is it possible to use spell checker API from Windows 8 Metro style app?

Question
-
Is it possible to access spell-checker dictionaries from Metro style app?
Are there JavaScript APIs? Or can I use native COM APIs from C++ Metro DLL that I'll link from my JS app?
I assume that Treehouse stampede from Developer Preview did it but can't find the source code anymore.
Monday, August 20, 2012 8:32 PM
Answers
-
I needed a way to check if a certain word is a dictionary word or not and do different things in the app based on the outcome.
I searched around and it seems that Spellchecker APIs can be used from native C++ metro code - http://msdn.microsoft.com/en-us/library/windows/apps/hh452772.aspx so I can package the necessary logic in C++ DLL and call it from JavaScript UI.
Correct me if I'm wrong.
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, August 24, 2012 11:39 AM
- Marked as answer by Dino He Friday, September 14, 2012 9:05 AM
Thursday, August 23, 2012 11:32 PM -
Ghost,
Sounds like a winner! You can request a sample from here: http://code.msdn.microsoft.com/windowsapps/site/requests?f%5B0%5D.Type=RequestStatus&f%5B0%5D.Value=Open&f%5B0%5D.Text=Open
That would be useful for others who want to do the same thing!
-Jeff
Jeff Sanders (MSFT)
- Marked as answer by Dino He Friday, September 14, 2012 9:06 AM
Friday, August 24, 2012 11:42 AMModerator -
Hi,
Addition to Jeff's suggestions. You're correct. You can create a custom WinRT component using C++, and consume the component from JavaScript. Inside the component, you can invoke the native library, as long as they're supported in WinRT environment. Please refer to http://msdn.microsoft.com/en-us/library/windows/apps/hh441569.aspx for a sample.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework- Marked as answer by Dino He Friday, September 14, 2012 9:05 AM
Wednesday, August 29, 2012 3:13 PMModerator
All replies
-
Hi G,
You cannot directly access the dictionaries. Spell check is built into the text entry fields however. What are you trying to accomplish?
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, August 21, 2012 12:54 PM
Tuesday, August 21, 2012 12:54 PMModerator -
I needed a way to check if a certain word is a dictionary word or not and do different things in the app based on the outcome.
I searched around and it seems that Spellchecker APIs can be used from native C++ metro code - http://msdn.microsoft.com/en-us/library/windows/apps/hh452772.aspx so I can package the necessary logic in C++ DLL and call it from JavaScript UI.
Correct me if I'm wrong.
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, August 24, 2012 11:39 AM
- Marked as answer by Dino He Friday, September 14, 2012 9:05 AM
Thursday, August 23, 2012 11:32 PM -
Ghost,
Sounds like a winner! You can request a sample from here: http://code.msdn.microsoft.com/windowsapps/site/requests?f%5B0%5D.Type=RequestStatus&f%5B0%5D.Value=Open&f%5B0%5D.Text=Open
That would be useful for others who want to do the same thing!
-Jeff
Jeff Sanders (MSFT)
- Marked as answer by Dino He Friday, September 14, 2012 9:06 AM
Friday, August 24, 2012 11:42 AMModerator -
Hi,
Addition to Jeff's suggestions. You're correct. You can create a custom WinRT component using C++, and consume the component from JavaScript. Inside the component, you can invoke the native library, as long as they're supported in WinRT environment. Please refer to http://msdn.microsoft.com/en-us/library/windows/apps/hh441569.aspx for a sample.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework- Marked as answer by Dino He Friday, September 14, 2012 9:05 AM
Wednesday, August 29, 2012 3:13 PMModerator