- #Mscomctl ocx missing vb6 how to#
- #Mscomctl ocx missing vb6 install#
- #Mscomctl ocx missing vb6 code#
Any sample code is provided for the purpose of illustration only and is not intended to be used in a production environment. Any materials (other than sample code) we provide to you are for your internal use only. These license terms are an agreement between Microsoft Corporation (or, if applicable based on where you are located, on of its affiliates) and you. Private sub Form_load() Shell "REGSVR32 /s c:\winnt\system32\mstask32.ocx" End Sub Thanks and Best Regards Anil Inampudi.īy using the following materials or sample code you agree to be bound by the license terms below and the Microsoft Partner Program Agreement the terms of which are incorporated herein by this reference. But, If you'd like to register them manually through the code then use this. Click Start -> Run and type REGSVR32 MSCOMCTL.OCX Solution 2:well the best alternative is to go with Package and deployment wizard. Note: Some users may need to perform this additional step to register the file:ġ.
Once downloaded, click the MSCOMCTL.exe and extract the file to your C:\WINDOWS\system32 directory (or) C:\Winnt\ system32\COMDLG32.OCX If the file is missing you can download itģ. The path to the file is typically: C:\WINDOWS\system32 (or) typically C:\Winnt\ system32\COMDLG32.OCX 2. First search your local drive for MSCOMCTL.OCX to see if it is missing.
#Mscomctl ocx missing vb6 how to#
Then, when the user runs a program or application that requires or is dependent on this file, they may be presented with the following error:Ĭomponent 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid MSCOMCTL.OCX error screenshot: How to Correct or fix this dependency error:ġ. One such file that can become corrupt or lost is the MSCOMCTL.OCX file. Occasionally when a Windows user is installing or uninstalling a bunch of software, certain Microsoft Libraries can become unregistered. Hi, Component MSCOMCTL.OCX or one of its dependencies not correctly registered Solution 1: MSCOMCTL.OCX is a Microsoft Library Windows Common Controls file. We've been trying to find the reason behind this behaviour.
Seaching the internet, we found that Windows Server 2008 R2 is compatible with this OCX ( ). So, probably, during installation the app configures something that only that user can see.
#Mscomctl ocx missing vb6 install#
Our conclusion is: If we install the app with the user, it works for him. But then, when trying to access as User_2, we received the same message. The app started to work normally for User_1 and administrator. After some tries, we installed the app again, logged as User_1. To test this theory, we added User_1 to the administrator's group. Our first thought was: lack of permissions. But then we logged with another user (User_1) on the machine, and we received the following message: 339 - Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or is invalid. To reproduce the scenario, we created a VM with Windows Server 2008 and installed the app (as administrator). One of our customers recently started to complain that our application does not work on Windows Server 2008 R2. In our company, we have an old VB6 application, based on COM+ and ADO 2.6.