As the title suggests, we will explain some concepts that may help you if you are doing a migration, especially if you are using ActiveX VB6 controls.
I recommend reading this other article if you are working with Factory Talk View, but I will try to explain everything so that one does not depend on the other.
I have prepared a virtual machine with a clean Windows 11 and the first thing I wanted to check is what type of ActiveX (x86) controls are included by default, and they are the following.
Here we will start the installation of WinCC v.8
After the installation, we observe how WinCC has registered some more controls in the Operating System.
For my friend Cesar, this would be a point of improvement :-) , I continue explaining...
We open the Graphics Designer, and we are going to insert some ActiveX control, the first thing we observe is that they are the SP4 :-(
I was surprised that out of all of them, some were correctly registered and licensed, but not all.
Here it is perfectly observed that I was able to instantiate an MS Flexgrid, but not, for example, a TreeView.
Now we are going to follow the same procedure that I have already described in the previous article.
We will briefly review the steps to follow.
We download from Microsoft the KB3096896 and extract it with 7zip for example.
We copy the contents of the *.ocx and *.dll files into the directory:
C:\WINDOWS\SysWOW64
We run our PowerShell to register all the ActiveX controls.
All the procedure finishes correctly.
We need to recover our famous *.reg file from the installation CD.
If you are testing the functionality and the migration, here you can find the complete list
We return to our WinCC and we already have the latest version of our controls in our Windows 11 / Windows Server 2022 (Also tested)
And any control works correctly again.
NOTE: This procedure is to ensure that the same project continues to function exactly, but one should consider migrating those controls to .Net.
I can say that over the years I have migrated quite a few of them and their operation is perfect even in the WebNavigator.