Link to home
Start Free TrialLog in
Avatar of Angel02
Angel02

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Randy Poole
Randy Poole
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
regsvr32 is what I believe you were referring to in order to register the control Graham
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"
Avatar of Angel02
Angel02

ASKER

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?
Avatar of Angel02

ASKER

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.