Visual Basic > Visual Basic Forums > Visual Basic General > Having a problem with Mscomctl.ocx file which prevent me from opening a program. Help plz??
Ask a questionAsk a question
 

AnswerHaving a problem with Mscomctl.ocx file which prevent me from opening a program. Help plz??

  • Friday, June 26, 2009 12:21 AMdfherrero Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I've been trying to open a program called 'DET 3' which is designed by the Honduran government and helps us pay taxes for the government. I've been getting this error message when I try to open the program "Component 'Mscomctl.ocx' or one of its dependencies not correctly registered: a file is missing or invalid" I need this program to work so I can pay my taxes before July 10th. Help please... Thanks 

Answers

  • Monday, June 29, 2009 7:44 AMMartin Xie - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi dfherrero,

    Welcome to MSDN forums!

    getting this error message when I try to open the program "Component 'Mscomctl.ocx' or one of its dependencies not correctly registered: a file is missing or invalid"

    -> The Mscomctl.ocx is Windows Common Controls.

    Sometime certain Microsoft Libraries can become unregistered when installing and uninstalling a lot of software. One very common problem is the MSCOMCTL.OCX.

    To correct the error, first search your drive for MSCOMCTL.OCX to see if you have it. If not you can download it from HERE: http://www.majorgeeks.com/files/mscomctl.zip

    The file should be placed in your C:\WINDOWS\SYSTEM directory. Or, it's in C:\WINDOWS\SYSTEM32 if you are using WinXP.

    Once it is there click START--> RUN and type "REGSVR32 MSCOMCTL.OCX" (No quotes) in the box to register this control.

    That should fix the problem.


    Tutorial: Explanation of Regsvr32 usage and error messages

    http://support.microsoft.com/kb/249873


    Best regards,
    Martin Xie


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Tuesday, June 30, 2009 10:40 AMMartin Xie - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi dfherrero,

    The "Mscomctl.ocx" and the "MSCOMCTL.OCX" are the same one file.

    Error: "The module "MSCOMCTL.OCX" was loaded but the call to DllRegister Server failed with error code Ox8002801c."

    -> Please try the following suggestion to fix this issue:

    1. Register the "Mscomctl.ocx" control under Administrator role
    New a batch file e.g. install.bat -> Place this command inside "REGSVR32 MSCOMCTL.OCX" and save it-> Right-click the batch file and select
    "Run as administrator"

    2. Install the "ActiveX Installer Service" in Vista via adding windows components, and then enable this service in services panel.

    Please check these cases for reference:
    http://www.codenewsgroups.net/group/microsoft.public.vb.general.discussion/topic17795.aspx
    http://www.cryer.co.uk/brian/windows/trbl_nt_rgsvrfld8002801c.htm


    Best regards,
    Martin Xie


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked As Answer bydfherrero Thursday, July 02, 2009 5:45 PM
    •  

All Replies

  • Monday, June 29, 2009 7:44 AMMartin Xie - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi dfherrero,

    Welcome to MSDN forums!

    getting this error message when I try to open the program "Component 'Mscomctl.ocx' or one of its dependencies not correctly registered: a file is missing or invalid"

    -> The Mscomctl.ocx is Windows Common Controls.

    Sometime certain Microsoft Libraries can become unregistered when installing and uninstalling a lot of software. One very common problem is the MSCOMCTL.OCX.

    To correct the error, first search your drive for MSCOMCTL.OCX to see if you have it. If not you can download it from HERE: http://www.majorgeeks.com/files/mscomctl.zip

    The file should be placed in your C:\WINDOWS\SYSTEM directory. Or, it's in C:\WINDOWS\SYSTEM32 if you are using WinXP.

    Once it is there click START--> RUN and type "REGSVR32 MSCOMCTL.OCX" (No quotes) in the box to register this control.

    That should fix the problem.


    Tutorial: Explanation of Regsvr32 usage and error messages

    http://support.microsoft.com/kb/249873


    Best regards,
    Martin Xie


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Monday, June 29, 2009 3:13 PMdfherrero Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Martin,

    Thanks a lot for you help, the file you told me 'MSCOMCTL.OCX' is im my C:\WINDOWS\System32 directory even though I have Vista Home Premium (I don't know if that is the problem since you told me it should be in the C:\WINDOWS\SYSTEM directory) When I try to run "REGSVR32 MSCOMCTL.OCX" another error message pops up which says,

    "The module "MSCOMCTL.OCX" was loaded but the call to DllRegister Server failed with error code Ox8002801c. For more information about this problem, search online using the error code as a search term."

    But, apparently the program I'm trying to use is having problems with the file "Mscomctl.ocx" and not with the "MSCOMCTL.OCX" file you mentioned above.
    I tried downloading the file you gave me and replacing the file I already had and I still get the erro.

    Thanks again


  • Tuesday, June 30, 2009 10:40 AMMartin Xie - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi dfherrero,

    The "Mscomctl.ocx" and the "MSCOMCTL.OCX" are the same one file.

    Error: "The module "MSCOMCTL.OCX" was loaded but the call to DllRegister Server failed with error code Ox8002801c."

    -> Please try the following suggestion to fix this issue:

    1. Register the "Mscomctl.ocx" control under Administrator role
    New a batch file e.g. install.bat -> Place this command inside "REGSVR32 MSCOMCTL.OCX" and save it-> Right-click the batch file and select
    "Run as administrator"

    2. Install the "ActiveX Installer Service" in Vista via adding windows components, and then enable this service in services panel.

    Please check these cases for reference:
    http://www.codenewsgroups.net/group/microsoft.public.vb.general.discussion/topic17795.aspx
    http://www.cryer.co.uk/brian/windows/trbl_nt_rgsvrfld8002801c.htm


    Best regards,
    Martin Xie


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked As Answer bydfherrero Thursday, July 02, 2009 5:45 PM
    •  
  • Tuesday, June 30, 2009 5:03 PMdfherrero Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Martin,

    It was very hard understanding what I had to do but I finally got it. The program finally worked after I created the batch file and ran it under administrator role.
    I did not run the ActiveX installer Service because apparently Windows Vista Home Premium doesn't have it because I can't find it in the Windows Features list.
    But, now the program is asking for other .ocx files to perform other operations so should i have to create a new batch file for every file I want to fix or can I use the same batch file I used for MSCOMCTL.OCX for the other files?

    Thanks a lot for your help I will finally be able to pay my taxes,

    Best regards, 
    David Herrero
  • Thursday, July 02, 2009 8:54 AMMartin Xie - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi David,

    I'm glad to hear that you have registered the MSCOMCTL.OCX control successfully.

    As for other .ocx controls, you don't need to create individual batch file for each, just only place such multiple commands as below into the same one batch file, then run it as administrator:
    REGSVR32 MSCOMCTL.OCX
    REGSVR32 OtherOCX1.OCX
    REGSVR32 OtherOCX2.OCX
    REGSVR32 OtherOCX3.OCX


    Regards,
    Martin
  • Thursday, July 02, 2009 5:43 PMdfherrero Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Martin,

    Thanks a lot for all your help. It has all worked out how I wanted it. 

    David