×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 37022154, Entry date: 07/27/2009
(1)
Rate

How do you register an ActiveX object on the configuration computer and then incorporate it in WinCC flexible?

  • Entry
  • Associated product(s)
When you copy ActiveX controls (also called OCX) onto your PC, you must make them known in Windows.

Contents
1. Information on registering ActiveX objects
     1.1. RegisteringActiveX objects
     1.2. Removing ActiveX objects
2. ActiveX objects in WinCC flexible

1. Information on registering ActiveX objects
    Note the following when using ActiveX objects:

  • When you move registered ActiveX controls (OCX or DLL files), Windows is triggered to trace the registration data.

    Example
    If you move an old ActiveX control and copy a new one in its place, then under circumstances you can still can the old ActiveX control.

    In addition, there might be problems if the Windows registration has not been updated properly.
     
  • If the ActiveX control depends on other modules (e.g.: DLL files), it might happen that you cannot execute them or that the registration fails.  
  • Installing or subsequent registering of ActiveX controls for WinCC flexible ES also affects WinCC flexible RT of the computer concerned if that ActiveX control is used in the Runtime project to be executed.

    Note
    The ActiveX control must also be registered on the computer on which the WinCC flexible Runtime runs later. See also Point 2.
     
  • When you call "Regsvr32", you should use the exact path, because other applications bring their own "Regsvr32" as a substitute for the Windows version.

    Path with environment variable: %windir%\system32\Regsrv32 C:\...

    Note
    Registration using a different "Regsvr32.exe" might be incompatible with WinCC flexible extensions.

1.1 Registering ActiveX objects

  • Copy the ActiveX control or OCX ("Name.OCX" or "Name.DLL") into the directory you have chosen for this purpose.
  • Register the ActiveX objects with the command "RegSvr32". For this, you click on "Start > Run..." and enter, for example:

    %windir%\system32\Regsvr32 C:\WINNT\System32\Name.OCX.
     
  • Press "ENTER" to transfer and then the name and path of the ActiveX control will be entered in the Registry database of Windows.

1.2 Removing ActiveX objects

  • To remove ("unregister") ActiveX objects from the "Registry", you must specify the parameter "/u". For example:
     

    %windir%\system32\Regsvr32 /u c:\WINNT\System32\NAME.ocx

    Note
    The ActiveX object is only "unregistered"; however, it is still on the computer.
     

  • If necessary, move or remove the ActiveX object manually from the relevant path on your computer.

2. ActiveX objects in WinCC flexible
Before you can use an ActiveX control in WinCC flexible, you must register the ActiveX control on the relevant computer.

Notes on using ActiveX controls in WinCC flexible
Using ActiveX Controls from other providers can lead to errors (e.g. "memory munchers", deteriorated performance, system blockages). The users of the software are fully responsible for any problems that arise when using other ActiveX Controls. We recommend that you make thorough tests before implementing them.

Siemens provides no guarantee whatsoever for conflict-free operation of other ActiveX Controls. Using other ActiveX Controls is the entire responsibility of the user. It is strongly recommended to make thorough tests before implementation. Non-certified ActiveX Controls must behave according to the Microsoft specification. In the case of conflict, the user must provide proof that the specification has been met.

Any ActiveX controls of your own that are incorporated in WinCC flexible, programming must be in compliance with the SDK guidelines (Software Development Kit) that are included in WinCC flexible SDK for PC.

Keywords
Making OCXs known, Registry editor, ActiveX element, Regedit

 

Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.