Registry Cleaner



Click here for a larger image.

Environment: VC++ 6.0, VB, Windows 2000

Introduction

If we compile a VB project in project compatibility and no compatibility mode, the VB environment generates GUIDs based on our modification. A typical VB COM developer machine environment often is filled with a lot of unused GUIDs. Unregistering COM objects by regsvr32 wouldn't remove all the Registry keys. This tool solves that problem by removing all the unwanted Registry keys.

There are some Registry cleaners available on the market for a couple of dollars. This tool is safe compared with other tools, in certain aspects. I used MFC for the CString and Dictionary classes. That adds some additional overhead. I wanted to finish up quickly, so I chose MFC.

This program will remove all COM Registry keys created by Regsvr32.

Using the Code

The user needs to prepare all the COM-based file names, including .oca, .ocx, and .dll into one ASCII file. Then, we need to call the Regclean ASCII file name with its path, for example:

Regclean c:\filename.txt

Points of Interest

This tool removes all the COM Registry keys, irrespective of versions.

Version History

This is version 1.0.

Downloads

Download demo project - 8 Kb
Download source - 3 Kb

Posting History



Comments

  • Undo

    Posted by Legacy on 10/11/2003 12:00am

    Originally posted by: wqweto

    please, create an undo.reg file!

    </wqw>

    Reply
  • This is dangerous

    Posted by Legacy on 06/10/2003 12:00am

    Originally posted by: peter desoza

    This is dangerous, i tried it on my machine and now some of my programs no more work

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

Top White Papers and Webcasts

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

  • Savvy enterprises are discovering that the cloud holds the power to transform IT processes and support business objectives. IT departments can use the cloud to redefine the continuum of development and operations—a process that is becoming known as DevOps. Download the Executive Brief DevOps: Why IT Operations Managers Should Care About the Cloud—prepared by Frost & Sullivan and sponsored by IBM—to learn how IBM SmartCloud Application services provide a robust platform that streamlines …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds