Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to load listview control - license not found

Status
Not open for further replies.

stuartwaite

Programmer
Sep 16, 2003
2
GB
I am in the process of re-compiling an existing application to run on a customers old Win95 platforms. I am using VB5 SP3 installed on a Win95 test PC. I have managed to re-create all of the references and components that the app uses (currently deployed on Win98, Win2000 and XP) but am struggling with the one last control : Several of my forms use a LISTVIEW control from the Microsoft Common Dialog Controls 6 (SP3) comdlg32.ocx ver 6.00.8418

The problem I have is the form cannot load the control at compile time giving the error : Cannot load control list1. License not found.

Can any one throw any light on the problem ?
 
Finding source code for the old project was probably a daunting task but the problem you have is your version of Visual Basic isn't licensed for that control. When Microsoft bundles versions like "Standard", "Professional", and "Enterprise" there are differences.

The treeview and listview controls belong to the Enterprise version. Install the right version and your problem will be solved.
 
Thanks ddewhitt

Thanks for your reply :)

You were in the right area but it was not quite as simple as that!

Martin @ vbCity.com pointed me in the right direction though. The problem was that the control had already been registered by the application prior to me instaling VB 5.0 (enterprise)

Here is a copy of my reply to martin :-

You have hit the nail on the head - dead centre.

The problem, as you quite accurately diagnosed, was a previous (wrongly licenced) copy of comctl32.ocx

The problem occured because I had installed my app on the Win95 platform from a setup.exe created using the deployment wizard - this installed an end user licence for the control. When after installation I found that the app did not function correctly I installed the VB IDE ver 5.0 sp3 to rework the source - apparently the VB install does not bother to re-register controls that allready exist :-(

The fix was quite straight forward - I followed the instructions on MicroSoft's KB 177799
1 unregister comctl32.ocx
2 delete the control's .ocx, .oca and .dep files
3 uninstall VB 5.0
4 re-install VB 5.0 (and sp3)

This almost worked

The control version was 5.00.3714 and I needed SP2 ver 6.00.8022 so I copied the .ocx, .oca and .dep files from my Win98 system and used regsvr32 to re-register the update

Bingo



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top