MSCOMCTL and MSCOMCTL2 could not be loaded?

6k Views Asked by At

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

1

There are 1 best solutions below

0
On

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.