I am writing programs that use another Application.
Lets say the Application ProgID is TheCompany.TheProg
up untill now, i was using "Add References/COM" and selecting the TheProg Type Lib
but it was mentioned by the 3ed party vendor that creating Interop DLLs is not supported and can cause some interface changes with version upgrades.
my question is: How can i reference this TheCompany.TheProg COM+ object without the creation of the Interop DLL?
I know i can use
Type theProgType = Type.GetTypeFromProgID("TheCompany.TheProg");
dynamic myObject = Activator.CreateInstance(theProgType);
dynamic version = myObject.AMethod();
but:
1. i need to cast Everything dynamic which require .NET FW v4!
unless i want to use theProgType.InvokeMethod() :)
2. I Have no IntelliSense.
Thanks a lot