HighTechTalks DotNet Forums  

Is there not an easier way to latebind in C#?

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Is there not an easier way to latebind in C#? in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mark Howell
 
Posts: n/a

Default Is there not an easier way to latebind in C#? - 06-11-2007 , 08:45 PM






Rather than p/Invoke, is there not an easier way to Interop to Office
products in C# such that I don't have to worry about what version the user
is running? In VB it's merely using late binding (Createobject, etc). I
don't want to include a reference to VB in my C# program and p/Invoke
(GetType.Invoke, etc) is a pain in the ###. Can anyone suggest an easier
way?



Reply With Quote
  #2  
Old   
Phil Wilson
 
Posts: n/a

Default Re: Is there not an easier way to latebind in C#? - 06-12-2007 , 10:43 AM






C# does late binding. There's an example towards the end of this article
that sends mail using Outlook and late binding.
http://www.simple-talk.com/dotnet/vi...-com-assembly/
--
Phil Wilson
[Microsoft MVP-Windows Installer]

"Mark Howell" <Mark.Howell (AT) Microsoft (DOT) com> wrote

Quote:
Rather than p/Invoke, is there not an easier way to Interop to Office
products in C# such that I don't have to worry about what version the user
is running? In VB it's merely using late binding (Createobject, etc). I
don't want to include a reference to VB in my C# program and p/Invoke
(GetType.Invoke, etc) is a pain in the ###. Can anyone suggest an easier
way?




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.