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

  1. 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.

  2. Perform the spelling check with a call to the SplCheck or SplReplace functions:
  3. If you called SplCheck, call SplSuggest to receive more possible alternative spellings.
  4. If necessary, alter the spelling of the misspelled word or ignore the suggestion and move to the next word.