Link to home
Start Free TrialLog in
Avatar of Fraser_Admin
Fraser_AdminFlag for Canada

asked on

vb 6 '' could not be loaded

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?
ASKER CERTIFIED SOLUTION
Avatar of RanjeetRain
RanjeetRain

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
Avatar of Fraser_Admin

ASKER

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?
Finally got it to work.  I searched for the name of my control and deleted the entry for it.
Avatar of RanjeetRain
RanjeetRain

Glad zou got it to work.
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.
There is also a Microsoft help file on the subject...

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