HighTechTalks DotNet Forums  

Should I import?

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


Discuss Should I import? in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Michael C
 
Posts: n/a

Default Should I import? - 11-09-2005 , 06:57 PM






I'm using a com dll in my c# app which works ok if I add it to references
and just use it. I only need to use a couple of interfaces. This means I
need to distribute the interop file with my app. On the other hand I could
define the interfaces in code and not use the interop file. Which is the
better way to go?

Thanks,
Michael



Reply With Quote
  #2  
Old   
Robert Jordan
 
Posts: n/a

Default Re: Should I import? - 11-09-2005 , 07:35 PM






Michael,

Quote:
I'm using a com dll in my c# app which works ok if I add it to references
and just use it. I only need to use a couple of interfaces. This means I
need to distribute the interop file with my app. On the other hand I could
define the interfaces in code and not use the interop file. Which is the
better way to go?
Using an interop assembly needs definitly less work.
You may try to decompile the interop assembly with
Reflector http://www.aisto.com/roeder/dotnet/
and extract the interface you need.

Robert


Reply With Quote
  #3  
Old   
Michael C
 
Posts: n/a

Default Re: Should I import? - 11-10-2005 , 08:12 PM



"Robert Jordan" <robertj (AT) gmx (DOT) net> wrote

Quote:
Using an interop assembly needs definitly less work.
You may try to decompile the interop assembly with
Reflector http://www.aisto.com/roeder/dotnet/
and extract the interface you need.
I've used reflector before but must have lost it during a reinstall. Thanks
for pointing it out, it's good to have it back again. I think I'll just
stick was the standard com interop dll that dot net provided. I can't really
see anything wrong with doing it that way.

Michael




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.