E3 Type library compatibility
I am developing an application which interact with E3 projects. I am using Visual Studio 2017 .NET 4.5 and C#.
In my system I have E3 2018 19.03 and so I added to the project a reference to the corresponding Type Library (see below the screenshot)
The problem is that when I try to connect to the application via COM using the command:
e3App = Activator.CreateInstance(Type.GetTypeFromProgID("CT.Application")) as IApplicationInterface;
The object e3App is null and I get an error message if the PC target where I setup the application has E3 2017 (18.XX)
What is the right approach in order to have an application fully compliant with both version?
Thanks for your support.