Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2005

Tip: Looking for answers? Try searching our database.

Should I import?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael C - 09 Nov 2005 23:57 GMT
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
Robert Jordan - 10 Nov 2005 00:35 GMT
Michael,

> 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
Michael C - 11 Nov 2005 01:12 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.