Link to home
Create AccountLog in
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Avatar of JCTDD
JCTDD

MSCOMCT2.OCX not correctly registered and cant register
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 ???

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Paul-BPaul-B🇺🇸

what was the exact command you typed in when trying to register it?

ASKER CERTIFIED SOLUTION
Avatar of Shane RussellShane Russell🇬🇧

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of JCTDDJCTDD

ASKER

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


--------------------------------------------------------------------------------

Avatar of Shane RussellShane Russell🇬🇧

The link I posted had those steps with regards to 64 bit windows so my post did contain the fix

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of JCTDDJCTDD

ASKER

thanks gecko_au2003
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.