How do you register an ActiveX object on the configuration computer and then incorporate it in WinCC flexible?
1. Information on registering ActiveX objects
1.1. RegisteringActiveX objects
1.2. Removing ActiveX objects
2. ActiveX objects in WinCC flexible
- When you move registered ActiveX controls (OCX or DLL files), Windows is triggered to trace the registration data.
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.
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:\...
Registration using a different "Regsvr32.exe" might be incompatible with WinCC flexible extensions.
- 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:
- Press "ENTER" to transfer and then the name and path of the ActiveX control will be entered in the Registry database of Windows.
- 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
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.
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.
Making OCXs known, Registry editor, ActiveX element, Regedit
- You have a technical question / problem: Ask the Technical Support
- You want to discuss in our forum and exchange experiences with other users
- You want to create CAx data for one or more products
- You would like to send us feedback on this Entry