Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

Error Code 145 - ActiveX Control Not Registered in LabWindows/CVI

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>Base Package

Problem:
Why do I get Error code -145 "ActiveX controller not registered in this computer"?

Solution:
You get this error code when a DLL is not found for a Microsoft Form control used in a CVI panel. Any one of the following solutions can be used. In the first solution you should manually register the DLL, and in the second solution the DLL will be registered when you download the ActiveX Control Pad from Microsoft's website.

Solution 1:
  1. You must make sure the client computers have the same operating as the server.
  2. While creating the distribution kit, make sure you check both the "Install Active X Container Support" and "Register files as ActiveX servers" in the Create Distribution Kit dialog.
  3. Make sure the client computer has the necessary DLL file. i.e. the DLL file for the specific ActiveX control. For example, if you use Microsoft Forms 2.0 scroll bars then make sure the FM20.DLL is present on the client computer. If not, the specific DLL file must be copied to the client computer.
  4. After copying the file to the client computer, you must manually register the DLL file as described in KnowledgeBase [1HBAMMSR]: How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?


Solution 2:
FM20.DLL is a Microsoft Form ActiveX component that is registered only when Microsoft Office is installed. If a Microsoft Forms control is used in a CVI panel, then registration of this DLL is needed. This is further explained on the Microsoft Support webpage.

The DLL can be registered by downloading Microsoft's ActiveX Control Pad and installing this application on the target computer. This registers the FM20.DLL component without the need to install Microsoft Office.

You can download the Microsoft ActiveX Control Pad from Microsoft's support website.

Related Links:
KnowledgeBase [1HBAMMSR]: How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?
MSDN: Microsoft ActiveX Control Pad

Attachments:





Report Date: 07/09/2004
Last Updated: 10/31/2005
Document ID: 3B8IM79T

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit