next up previous contents
Next: Registering ActiveX objects on Up: Using ActiveX Objects Previous: Registering ActiveX objects manually   Contents

Registering ActiveX objects on end users' systems I - using the "register" method

The ActiveXObject object provides a method "register" to register an ActiveX object. If you only want to use the ActiveX objects privately and need to remove them after the application closed, you can use this method.

  1. Adding the ActiveX objects into the attachment list. For example, creating a sub folder called "ActiveX" under the "Application" folder, adding the "SWFGen.dll" into it. As shown in figure 1
    Figure 1.9: Adds an ActiveX object
    Image t8

  2. In the "Initialize" script, extracting the "SWFGen.dll" and register it

    var swfgen = getAdditionalFile("ActiveX\\SWFGen.dll");
    ActiveXObject.register(swfgen);
    

    After the ActiveX object has been registered, you can invoke its methods and properties in FFish Script.

  3. When the application is about to close, you need to unregister it.

    var mainWnd = getMainWnd();
    mainWnd.onClose = function ()
    {
        ActiveXObject.unregitser(swfgen);
    }
    
    All additional files include the ActiveX object will be removed after the application is closed.


next up previous contents
Next: Registering ActiveX objects on Up: Using ActiveX Objects Previous: Registering ActiveX objects manually   Contents
Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.