BlueAries
BlueAries

Reputation: 31

MSCOMCTL and MSCOMCTL2 could not be loaded?

Can somebody please help me and tell me what should I do open my project in Visual basic 6? When I open my previous project, I got the error

enter image description here

Upvotes: 2

Views: 6477

Answers (1)

Menol
Menol

Reputation: 1348

You can find MSCOMCTL in your SysWOW64 (or system32 on 32 bit systems) and you can register it easily with the regsrv32 command.

regsvr32 c:\windows\syswow64\MSComCtl.ocx

For MSComCtl2 related problem the following worked for me:

  1. Open a command (DOS) prompt in "C:\Windows\SysWOW64" (system32 on 32-bit systems)
  2. Execute (type and hit enter) regtlib msdatsrc.tlb

Visual studio may have removed entries for MSCOMCTL2 when it couldn't find referenced resource so you may have to revert the .vbp file after completing the above command.

Upvotes: 1

Related Questions