My question is: Does C# nativly support late-binding IDispatch?
Pretend i\'m trying to automate Office,
hey Dude, i have 2 codeplex projects currently to resolve this problem.
the first one is LateBindingApi.Excel http://excel.codeplex.com mapped latebinded invoke call to the well known object model. this was a test project for the following project.
the second one is a CodeGenerator http://latebindingapi.codeplex.com the tool creates c# projects from COM Type libraries. the generated projects includes mapper objects with latebind accessing the COM Server. the highlight is the tool converts COM type libs in different versions to one single project(for example excel 9,10,11) and marked all entities with an self defined SupportByLibrary Attribut. i have analyzed all office apps in version 9,10,11,12,14 with this this tool now and generate a c# solution, its available as tested beta with sample code on main page.