Solved

MSCOMCT2.OCX not correctly registered and cant register

Posted on 2012-03-14
5
3,281 Views
Last Modified: 2012-06-22
trying to run a VB app (version 6) and getting error "Component MSCOMCT2.OCX or one of its dependencies not correctly registered: a file is missing or invaled. "

I downloaded the MSCOMCT2.OCX file and placed in: C:\Windows\System32

when searching forums they say to register the file while running the cmd as administrator when i do that get this error "the module mscomct2.ocx failed to load"

how to fix ???
0
Comment
Question by:JCTDD
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:Paul-B
ID: 37723452
what was the exact command you typed in when trying to register it?
0
 
LVL 23

Accepted Solution

by:
gecko_au2003 earned 500 total points
ID: 37723652
Personally if possible I would use the original windows disc for the O/S you have and the expand command assuming it is supported on said OS to expand the OCX File to the same directory over writing the one you downloaded

The registering command as far as I am aware should be along the lines of

regsvr32 "C:\Windows\System32\MSCOMCT2.OCX"

Also as per here :

http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/1fd6b78a-b1b3-4190-aceb-91575cd7092a

If it is 64 bit version of widows you may need to copy it to a different directory.
0
 

Author Comment

by:JCTDD
ID: 37736128
i am using windows 7 64-bit so i solved by following these steps:

You need to copy the MSCOMCT2.OCX file to c:\windows\sysWOW64 not c:\windows\system32. You then can register it by running from the command prompt or run in the start menu regsvr32 c:\windows\sysWOW64\mscomct2.ocx and it should register although make sure that you run regsvr32 with administrator privileges.

How to run that command in Administrative Mode
================================
1. Click the Start button, then in the "Start Search" box, type CMD but DO NOT press Enter yet.
2. In the list above, under "Programs" right-click on CMD that appears above and choose "Run as Administrator" and click "Continue".
3. In the open window, type the following command and press Enter:

regsvr32 c:\windows\sysWOW64\mscomct2.ocx


--------------------------------------------------------------------------------
0
 
LVL 23

Expert Comment

by:gecko_au2003
ID: 37736591
The link I posted had those steps with regards to 64 bit windows so my post did contain the fix
0
 

Author Comment

by:JCTDD
ID: 37739876
thanks gecko_au2003
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

744 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

10 Experts available now in Live!

Get 1:1 Help Now