This sample demonstrates how to create a sample spell checking provider that conforms to the Windows Spell Checking API. It is registered with Windows and can then be used in text controls if selected by the user in the Language Control Panel.
This sample works in conjunction with the Spell checking client sample.
The following documentation provides general guidance for the APIs used in this sample:
Note The Windows Samples Gallery contains a variety of code samples that exercise the various new programming models, platforms, features, and components available in Windows 8.1 and/or Windows Server 2012 R2. These downloadable samples are provided as compressed ZIP files that contain a Visual Studio solution (SLN) file for the sample, along with the source files, assets, resources, and metadata necessary to successfully compile and run the sample. For more information about the programming models, platforms, languages, and APIs demonstrated in this sample, please refer to the guidance, tutorials, and reference topics provided in the Windows 8.1 documentation available in the Windows Developer Center. This sample is provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows 8.1 and/or Windows Server 2012 R2. Please provide feedback on this sample!
To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.
Related topics
Operating system requirements
| Client | |
|---|---|
| Server |
Build the sample
- Start Visual Studio 2013 and select File > Open > Project/Solution.
- Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Visual Studio 2013 Solution (.sln) file.
- Press F7 (or F6 for Visual Studio 2013) or use Build > Build Solution to build the sample.
Run the sample
The sample must be installed as a spell checking provider by performing the following steps.
- Create a folder named "SampleSpellingProvider" under "C:\Program Files\".
- Copy the SampleProvider.dll you've built to "C:\Program Files\SampleSpellingProvider\".
- Run one of the reg files provided with this sample:
- currentuser.reg if you want to install for the current user.
- localmachine.reg if you want to install for all users.
Note The reg files contain the path "c:\\Program Files\\SampleSpellingProvider\\SampleSpellingProvider.dll". Edit it appropriately if you placed your .dll in a different location.
- Open the desktop Control Panel, select Clock, Language, and Region > Language, and double-click English in the list of languages.
- Select "Sample Spell Checker" as the default spell checker for English.
The sample spell checking provider will now be used as the English spell checker by Windows controls and any clients of the spell checking API. You can install the spell checking client sample to exercise this provider sample.