You attempt to run a Visual Basic 6.0 application that contains an ActiveX control.
You receive the following error message:
Runtime Error: 372 - Failed to load control<controlName> from <control.ocx>.Your version of <control.ocx> may be outdated. Make sure you are using the version of the control that was provided with your application
This can occur when the user running the application is logged on under a different user account than the user account who installed the application, and the installation package installed the application on a per user basis.
When an application is installed for a specific user, the COM components referenced in the application are registered in the HKEY_CURRENT_USER hive in the Windows registry. When an application is installed for All Users, the registry entries are made to the HKEY_LOCAL_MACHINE hive in the Windows registry, and all users should be able to read these entries by default.
Modify the installation program to install the application for All Users.
Article ID: 942870 - Last Review: May 23, 2008 - Revision: 1