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