Windows – Error Loading VB 6 Project In Windows 7 – MSComCtl2

operating systemsvb6visual basicvisual studiowindows 7

I can't open my VB6 project on any Windows 7 machine. I did a clean OS install on a machine. The OS is Windows 7 Pro SP1 32 bit. All I have installed on this machine is VB6 Enterprise and Office 2007 Enterprise. When I try to open my VB6 project I receive this error:

Error Message

This is what the log files give me for the error:

Line 120: Class MSComCtl2.DTPicker of control dtToDate was not a loaded control class.

Line 132: Class MSComCtl2.DTPicker of control dtFromDate was not a loaded control class.

What I have tried so far to fix the issue:

Ran VB6 as Admin

Downloaded MSComt2 cab file and replaced the .ocx and .dll in system32

Ran regsvr32 and registered the .dll

Reinstalled VB6 Enterprise and SP 6

I have tried this on three different Windows 7 machines, and have had the same error.

Best Answer

Open the VBP file with notepad, and find the lines with the component(s) in them, and delete them. Start the project and re-add them in Visual Basic. Probably the CLSID's are wrong for your machine

Also check the version of the files you are registering with the line in your VBP file to see if they are the same

Related Question