Using the Spelling Checker
Once you initialize the spelling session and set the spelling checker options, you can call a variety of functions to check spelling and suggest alternate words to use.
To use the spelling checker
- Set up the SPLBUFFER structure.
SPLBUFFER contains data concerning the words to check, the location of the input and output buffers, and the status of the spelling session in progress.
- Perform the spelling check with a call to the SplCheck or SplReplace functions:
- SplCheck checks the input buffer of SPLBUFFER with the dictionaries.
- SplReplace checks the input buffer against the dictionaries and suggests a limited number of possible alternative spellings.
- If you called SplCheck, call SplSuggest to receive more possible alternative spellings.
- If necessary, alter the spelling of the misspelled word or ignore the suggestion and move to the next word.