A Primitive Spellchecker in MS VC++ 6.0

Introduction

It's quite common knowledge that you can specify your own keywords for the syntax color highlighting of the MS VC++ environment. The idea of this article is to make excessive use of this feature to achive 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" that contains all user-defined keywords. The challenge is to get an (almost) complete list of all data types, classes, member functions, and define those that are commonly used. Because this is quite a lot of work, you should start with the file enclosed in this article. It contains more that 3,000 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 "\Common\MSDev98\Bin" subdirectory of you MS VC++ 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 3,000 keywords in the file and it works nicely. I've expected to encounter some kind of limit, but so far it works quite well.

History

I'm always adding new keywords when I encounter them. You can download the latest version on my homepage: http://www.itsth.de/en/ueber/dev_usertype.php. You can find some other tricks and tools there, too.



About the Author

Thomas Holz

I'm developing file and Outlook synchronization software. Please have a look at http://www.easy2sync.com

Downloads

Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: September 17, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Another day, another end-of-support deadline. You've heard enough about the hazards of not migrating to Windows Server 2008 or 2012. What you may not know is that there's plenty in it for you and your business, like increased automation and performance, time-saving technical features, and a lower total cost of ownership. Check out this upcoming eSeminar and join Rich Holmes, Pomeroy's practice director of virtualization, as he discusses the …

  • As mobile devices have pushed their way into the enterprise, they have brought cloud apps along with them. This app explosion means account passwords are multiplying, which exposes corporate data and leads to help desk calls from frustrated users. This paper will discover how IT can improve user productivity, gain visibility and control over SaaS and mobile apps, and stop password sprawl. Download this white paper to learn: How you can leverage your existing AD to manage app access. Key capabilities to …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds