Solved

After registering and unregiisting many times OCX will not register

Posted on 2008-10-09
2
168 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
ID: 22694766
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
ID: 31504717
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 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