ObjectDCL Banner

RegisterActiveXCtrl Method

Description

This method is used to register an ActiveX control. When installing your software to another machine each ActiveX control that is used in your program must be registered to the users machine. There are two ways to do this. The most common is to use a proper installation package that will register the ActiveX controls for you. The other is to use this method to register the controls. It is your responsibility to ensure that you do not call this method on any ActiveX control more than once. No damage will be done, but registering ActiveX controls consumes a noticeable amount of time.

Parameters

sActiveXFileName
String identifying the path to the ActiveX dynamic library file.

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil on failure.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_RegisterActiveXCtrl 
		sActiveXFileName [as String])

Applies For

ActiveX.

Example

CopyCode imageCopy Code
; Register this ActiveX
(Odcl_RegisterActiveXCtrl MyProject_MyForm_MyControl "MyActiveX.ocx")