Solved

vb 6 '' could not be loaded

Posted on 2004-10-12
6
1,434 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about problems I had with the new location API and permissions in Marshmallow
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 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