?
Solved

After registering and unregiisting many times OCX will not register

Posted on 2008-10-09
2
Medium Priority
?
173 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

801 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