• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2504
  • Last Modified:

Error loading VB6 project

I have recently installed VB6 on a windows 7 machine. I had been using the VB6 projects on XP until now. When i try to open these projects on Windows 7 machine, none of the projects are loading. They throw errors like missing classes. Errors from the error log of one of the projects is

Line 61: Class MSComCtl2.DTPicker of control D1 was not a loaded control class.
Line 74: Class FPSpreadADO.fpSpread of control dg was not a loaded control class.
 
Am I missing any dll's?
0
Angel02
Asked:
Angel02
  • 2
  • 2
  • 2
2 Solutions
 
Randy PooleCommented:
After installing it, did you install the latest SP for it?
http://www.microsoft.com/en-us/download/details.aspx?id=5721
0
 
GrahamSkanRetiredCommented:
It sounds as if there are some libraries used that were on your previous machine and are not installed or not registered.

The file MSComCtl2.ocx should have been installed during the VB6 installation. If it os on you system, try registering it with regedit.

FPSpreadADO.ocx does not come with VB6, so must be installed in some other way.
0
 
Randy PooleCommented:
regsvr32 is what I believe you were referring to in order to register the control Graham
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
GrahamSkanRetiredCommented:
Thanks Randy. Yes, indeed. I wasn't thinking straight there are two other typos in the sentence. I also want to underline your point about service packages, because the mscomctl2 library description is tagged (SP6).

"If it os on you system, try registering it with regedit."
should be corrected to:
"If it is on your system, try registering it with regsvr32"
0
 
Angel02Author Commented:
I cannot find MSComCtl2.ocx on my windows 7 machine.

@Randy Poole The SP link that you provided says system requirements as XP. Should I still install that?
0
 
Angel02Author Commented:
So I installed VB6 SP6 on the machine and saw MSComctl.ocx. I registered it and it got rid of the mscomctl related errors. As for fpspread, it looks like a third party software which I need to download/purchase. Thank you all.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now