Sentry Spell Checker |
Home Site index Contact us Catalog Shopping Cart Products Support Search |
You are here: Home > Add a spell checker to your applications > C/C++
Sentry Spell Checker provides everything you need to add a full spell check capability to your 32-bit Windows applications written in C or C++. Click here to find out more about Sentry Spell Checker.
Click on a topic below to find out more about how Sentry Spell Checker works with your C/C++ applications:
Many C/C++ applications let their users enter text via an edit or richedit control on a dialog. If this is how your application works, you can add a spellchecker in minutes using these simple steps:
|
|
That's all there is to it! When the "Spell check" button or menu item is pressed, Sentry will check the spelling of words in the control. If a misspelled word is found, Sentry will pop up a dialog the user can interact with to dispose of the misspelling. The misspelled word will be highlighted in the edit or richedit control. The dialog shows suggested replacements for the misspelled word. If the user makes a correction, the control will be updated automatically.
|
|
The text you want to spell check may not be entered by the user -- it may be read from a disk file or database, or obtained from data structures within your application.
Sentry Spellcheck Engine can check words contained in strings interactively or non-interactively.
To check a string interactively, just pass it to the CheckBlockDlg function. The string can contain a single word or an entire book. Sentry will check the spelling of words in the string. If a misspelled word is found, Sentry will pop up a dialog the user can interact with to dispose of the problem. The dialog shows suggested replacements for the misspelled word. If the user makes a correction, the string will be updated automatically. Sentry can even optionally show the string's contents in a text box attached to the dialog so the user can see the misspelled words in context. |
|
Checking strings non-interactively is done via the CheckString function. CheckString is usually called in a loop. It checks each word in the string and returns when it finds a misspelled word or when all words have been checked. Your application can obtain a list of suggested replacements for the misspelled word from the Suggest function.
Copyright © 2015 Wintertree Software Inc.