Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 854
  • Last Modified:

VB6 Question

I have an old, but important, piece of software that I need vb6 to make changes to.  I am running xp still for this purpose (does vb6 run on Windows 7?).  Recently when I try to open vb6 I get this error message: Object library not regisitered.  The form that is generating this error has the following log file entry:  

Line 19: Class MSComctlLib.ProgressBar of control prgDumpProg was not a loaded control class.

Why would this start happening all of a sudden and how do I resolve it?  Note that the compiled application (exe file) runs fine.
0
Bob Schneider
Asked:
Bob Schneider
  • 4
  • 3
1 Solution
 
Martin LissRetired ProgrammerCommented:
Yes, VB6 programs can be developed and run on Windows 7 but you may need to make changes concerning where you store files, etcetera due to new security features in Windows 7.

Check component "Microsoft Windows Common Controls 6.0 (SP6)" in Project|Components
Is it selected? Does it say: "MISSING" ?
0
 
Bob SchneiderAuthor Commented:
Looks like I have a picture box that I am using as a progress bar.  Here is the problem:

    prDumpProg.Visible = True      'show progress bar
    prDumpProg.Min = 0
    prDumpProg.Max = UBound(sBibArray, 2)
    prDumpProg.Value = 0

It doesn't like the *.Min  could that have been deprecated?  Basically it says set it to 0 and show the progress from there.

Any help on this...and thanks a ton for your patience!
0
 
Martin LissRetired ProgrammerCommented:
Several things:

1. Pictureboxes don't have a Min property so here's what has happened. When VB couldn't find the control for prDumpProg it substituted a picturebox. The control you were probably using was the Progressbar control that is a part of Microsoft Common Controls 6.0

2. So let me ask these questions again. Check component "Microsoft Windows Common Controls 6.0 (SP6)" in Project|Components. Is it selected? Does it say: "MISSING" ?

3. When you say it runs as an exe I'm betting that the exe dates from before you had this problem. Is that right? Save that exe and try to create and run a new one. What happens?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Bob SchneiderAuthor Commented:
I am certain you are correct but I have not made any (intentional) changes to the program regarding this picture box since I compiled it the last time.  I will see if I somehow changed the progress bar to a picture box but, again, no idea how that would have happened.  I will let you know.  At that point I will follow up on your other/earlier suggestions.

Your help is much appreciated!!!
0
 
Martin LissRetired ProgrammerCommented:
You're welcome and I'm glad I was able to help. BTW it's standard operating procedure for VB6 to substitute pictureboxes for missing controls.

My profile contains links to some articles I've written that may interest you.
Marty - MVP 2009 to 2012
0
 
Bob SchneiderAuthor Commented:
Microsoft Windows Common Controls 6.0 (SP6)" in Project|Components is not checked.  When I check it, it says "Object Not Registered"
0
 
Martin LissRetired ProgrammerCommented:
Take a look at this article.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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