Error loading VB6 project

Posted on 2014-07-15
Last Modified: 2014-07-25
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?
Question by:Angel02
    LVL 21

    Accepted Solution

    After installing it, did you install the latest SP for it?
    LVL 76

    Assisted Solution

    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.
    LVL 21

    Expert Comment

    by:Randy Poole
    regsvr32 is what I believe you were referring to in order to register the control Graham
    LVL 76

    Expert Comment

    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"

    Author Comment

    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?

    Author Comment

    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.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now