Click here to Skip to main content
13,004,823 members (69,963 online)
Click here to Skip to main content
Add your own
alternative version


12 bookmarked
Posted 20 Apr 2003

A Primitive Spellchecker in Microsoft C++ 6.0

, 20 Apr 2003
Rate this:
Please Sign up or sign in to vote.
This article demonstates how to use Microsoft C++ as a spellchecker while programming by making excessive use of the user-defined keyword feature


It's quite common knowledge that you can specify your own keywords for the syntax color highlighting of the Microsoft C++ environment. The idea of this article is to make excessive use of this feature to achieve the effect of a simple and free spellchecking tool. All the common things will be displayed in a special color if they're written correctly.

For this, all the common things that are used when programming are put into the file usertype.dat which contains all user-defined keywords. The challenge is to get an (almost) complete list of all data types, classes, member functions and defines that are commonly used. Since this is quite a lot of work, you should start with the file enclosed in this article. It contains more that 2000 words, giving you a good start. Depending on the things you work on, you'll probably add your own things sooner or later.

Using the Code

Just unzip the file and place it in the subdirectory \Common\MSDev98\Bin of your Microsoft C++ installation. You'll have to restart the IDE and may want to configure the color used for user-defined keywords in the IDE's options.

Points of Interest

Currently, I have more than 2000 keywords in the file and it works nicely. I've expected to encounter some kind of limit, but so far it works nicely.


  • 21st April, 2003: Initial post

I'm always adding new keywords when I encounter them. You can download the latest version on my homepage. You can find some other tricks and tools there, too.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Germany Germany
No Biography provided

You may also be interested in...

Comments and Discussions

JokeAlso works with VS 2005 Pin
KarstenK11-Jun-06 21:33
memberKarstenK11-Jun-06 21:33 
Generalva Pin
dog_spawn21-Apr-03 10:26
memberdog_spawn21-Apr-03 10:26 
GeneralRe: va Pin
Paul Selormey21-Apr-03 14:13
memberPaul Selormey21-Apr-03 14:13 
GeneralRe: va Pin
lxwde21-Apr-03 14:44
memberlxwde21-Apr-03 14:44 
GeneralRe: va Pin
lxwde21-Apr-03 14:45
memberlxwde21-Apr-03 14:45 
GeneralRe: va Pin
dog_spawn22-Apr-03 5:39
memberdog_spawn22-Apr-03 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170627.1 | Last Updated 21 Apr 2003
Article Copyright 2003 by ITSTH
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid