|
-
Oct 25th, 2002, 10:57 AM
#1
Thread Starter
Addicted Member
Install problem - Run Time Error 372 ! - RESOLVED
************************************************
Again thanks to all that contributed to help me solve this problem. This is the solution;
The image list contained icons for use in the toolbar. Images were inserted at 16x16, however one icon was 32 x32 in its original state and inserted into the image list at 16 x 16. Solution :
Use an icon editor program, ensure all icons were resized to 16 x16 before inserting into image list. No more run time 372 error.
Jack
***********************************************
Hi all,
Have created an install setup with Set Up Factory and attempted to install the app on a NT 4 machine.
I keep getting an error 372
"Failed to load control "ImageList" from mscomctl.oxc. Your version of mscomctl ocx may be outdated. Make sure you are using the version of the control that was provided with your application.
I am using VB6 SP5 and have tried the following with no success;
1. Unregistering the ocx and re-registering
2. Have used regdrop and Regsvr32 to do both
3. Have deleted the the ocx from the NT4 machine and copied the ocx from the development machine to it
4. Have checked for duplicates on NT4 machine
5. Have done the above for comcat.dll aswell
Have opened up the .vbp file and checked the entry for the ocx, it shows
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; mscomctl.ocx
I opened the .frm of the form and it is the same.
Any solution would greatfully appreciated, as I do not know what to try next and am becoming very frustrated.
Cheers
Jack
Last edited by Jackalx25; Oct 28th, 2002 at 12:06 AM.
-
Oct 25th, 2002, 03:04 PM
#2
Addicted Member
I'm not familiar with your setup program that you are using, but I've found that most don't include the objects that you will need when installing your application. Make sure that the distributed version of the mscomctl.oxc is being packaged with your setup program and that the installation flags are setup correctly. If you are looking to use a different setup program, you should take a look at Inno Setup. Its a free program that also includes source, so if you know a little Delphi, you can customize the app. if needed.
-
Oct 26th, 2002, 05:17 AM
#3
Thread Starter
Addicted Member
I have also used the Package and Deploy wizard to test and encountered the same prob when trying to install on the NT4 machine. I also generated a .dep report to ensure all required files were installed or needed to be installed on the machine.
The NT4 machine has IE 2, I have read in some places that installing IE 3 has solved the problem in some instances...this seems strange however.
Any comments or suggestions will be most welcome
Jack
-
Oct 26th, 2002, 05:33 AM
#4
PowerPoster
And the IE version on your machine is....? This might be a problem. IE is very tightly integrated with OS. It changes many files that are critical to OS.
-
Oct 26th, 2002, 06:25 AM
#5
Well ...
Why not open up the registry and find out the CLSID of the control from there? Try to match it with the one in your VBP.
Also make sure you have the service packs of everything installed and all...
.
Last edited by honeybee; Oct 26th, 2002 at 06:29 AM.
-
Oct 26th, 2002, 07:31 AM
#6
PowerPoster
It seems more likely that while his ocx might be the correct version, the underlying dll file "Comcat.dll" or other required dll files are not the correct version.
-
Oct 26th, 2002, 08:02 AM
#7
Thread Starter
Addicted Member
Thks honeybee for the suggestion.
This is what was in my vbp file
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; mscomctl.ocx
I searched the registry for "mscomctl.ocx" and there are numerous CSLID keys that reference this .ocx. I am not very familiar with working the the registry, so any further guidence or detail would be much appreciated.
The only place I could find that matched the above key was in HKEY_CLASSES_ROOT\TypeLib\
Btw, the application was developed on a XP Professional machine,
VB6 SP5, IE 6.
Have also checked comcat.dll and it is the same version as on the XP machine and registered. Microsoft does not list any other files associated with mscomctl.ocx
Jack
-
Oct 26th, 2002, 08:19 AM
#8
Thread Starter
Addicted Member
I started searching imagelist in the registry and the CLSID
shows up as 2C247F23-8591-11D1-B16A-00C0F0283628. Is this what I need to match to the .vbp ?
If so, do I just replace the CLSID ref in the .vbp with this one or how can I change this CLSID to reflect the one in the .vbp ?
Cheers
jack
-
Oct 26th, 2002, 08:27 AM
#9
Well ...
Usually there will only be on CLSID, although it will be stored at many different locations....
Probably a stupid suggestion, but try removing MSComCtl from your setup package and then install it.
Chances are it won't work, but I can't think of anything else right now 
Also I don't think you need to match the ImageList control's ID, but I may be wrong. I think this because MSComCtl is a set of controls and not individual controls.
.
-
Oct 27th, 2002, 07:42 AM
#10
Thread Starter
Addicted Member
Hi all,
thanks to everyone who has tried to help with this problem I am having.
I have some good news...I have found the cause of the problem. The problem is using icons in the image list 16x16. If I change the image list and use 32 x 32 and remake the .exe and setup program, the app installs and works fine on the NT 4 SP6a.
As soon as I change them to 16 x 16, I get that damn 372 error.
So, if someone would be kind enough to explain why this is occurring and how to fix..I will be able to get some sleep.
Cheers
Jack
-
Oct 28th, 2002, 12:08 AM
#11
Thread Starter
Addicted Member
All fixed. see first post for solution...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|