Solved

After registering and unregiisting many times OCX will not register

Posted on 2008-10-09
2
166 Views
Last Modified: 2012-05-05
I have a project that stores a OCX in a resource file. On program load code checks to see if it exists and if not it is extracted and registered. This code ran fine at first but in testing I have manually unregistered and registered this ocx many times. Each morning i do 3 backups of my vb project 2 to other places on my hard drive and 1 to a flash drive. I just did a search and have 43 copies of the ocx on my hard drive, probably some registered and others not. Now i can no longer register this ocx. How can i clean-up this mess and get my ocx to register ?
0
Comment
Question by:isnoend2001
2 Comments
 
LVL 14

Accepted Solution

by:
Matti earned 500 total points
Comment Utility
Hi!

Type regedit on run commandline.
Press Ctrl-F and type controls name there.

Delete all etries on GUID level like these: {71E40CBE-9E14-45D3-A7F8-81F8F46F3F38} and their sub keys
DO Not delete anything on root or catecory level.

Press F3 until you found all entrys

Then make sure that the latest is in WIndows\System32 folder

and type on runline regsvr32 controlname.ocx

Matti
0
 

Author Closing Comment

by:isnoend2001
Comment Utility
Thank you
Actually I rebooted and then was able to register, now i need to do as you suggested and clean up the mess in the registary
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now