Solved

MSCOMCT2.OCX not correctly registered and cant register

Posted on 2012-03-14
5
3,343 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
String manipulation in Visual Basic 7 60
MS Access Search and Replace Using VBA 6 58
VBA filters 2 51
how to know if my Checkbox is True in VB6.0? 9 41
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

861 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

23 Experts available now in Live!

Get 1:1 Help Now