Solved

After registering and unregiisting many times OCX will not register

Posted on 2008-10-09
2
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

726 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