Solved

vb 6 '' could not be loaded

Posted on 2004-10-12
6
1,438 Views
Last Modified: 2007-12-19
I have a vb6 active x control that I created months ago.  I use it in a program.  It compiles fine, and up until a couple of days ago it worked fine.  Now when I try to open my project it says '' could not be loaded.  When I look in the error log for the form the component is used for, it says: Line 15: Class ScaleControl.ctlScale of control ctlScale1 was not a loaded control class.  Even if I open a new project and try to add it as a component it says that same message, '' could not be loaded.  Has anyone else seen this?
0
Comment
Question by:Fraser_Admin
  • 2
  • 2
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 500 total points
ID: 12286862
Look into the registry and try to locate its location from the ProgID. Check if your control OCX is still there. THere is a chance it got deleted.
0
 

Author Comment

by:Fraser_Admin
ID: 12287411
I tried to unregister and re-register.  Does not work.  I can bring it in as a component on another machine fine.  So it is something to do with my machine, and I'm as well guessing the registry.

I have very minimal experience with the registry.  Can you explain how I go about this?  What is the ProgID and how do I locate it?
0
 

Author Comment

by:Fraser_Admin
ID: 12288220
Finally got it to work.  I searched for the name of my control and deleted the entry for it.
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12288371
Glad zou got it to work.
0
 
LVL 1

Expert Comment

by:JedNebula
ID: 25221322
In addition, if you created the control, you could open up the controls vbp file on it's own and recompile the project (it must be on it's own and without being part of a vbg project group else it might not work). Close down the vbp file and open the group; you should have some more success without having to go into the registry which is not for everyone.

If the control is not your own then you have no choice but to use the registry method.
0
 
LVL 1

Expert Comment

by:JedNebula
ID: 25221324
There is also a Microsoft help file on the subject...

http://support.microsoft.com/kb/217180/EN-US/
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

776 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