Results 1 to 11 of 11

Thread: Install problem - Run Time Error 372 ! - RESOLVED

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187

    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.

  2. #2
    Addicted Member
    Join Date
    Jul 2002
    Posts
    234
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187
    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

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    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.

  5. #5
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    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.
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    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.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187
    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

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187
    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

  9. #9
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    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.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187
    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

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    187
    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
  •  



Click Here to Expand Forum to Full Width