You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

Runtime error '372': Failed to load control when running a Visual Basic 6.0 Application

Source: Microsoft Support
RAPID PUBLISHING
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
Action


You attempt to run a Visual Basic 6.0 application that contains an ActiveX control.
Result


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
Cause


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.
Resolution


Modify the installation program to install the application for All Users.
MoreInformation
DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.
Properties

Article ID: 942870 - Last Review: 09/21/2007 21:47:51 - Revision: 1.3

  • Microsoft Visual Basic 6.0 Standard Edition
  • kbnomt kbrapidpub KB942870
Feedback
>>ript' src='" + (window.location.protocol) + "//c.microsoft.com/ms.js'><\/script>");