
Signature
http://www.csharp-station.com
Hi Joe,
yeah, I know I can do that. I was hoping to avoid that somehow.
Maybe the way to do this is to use TLBIMP and then decompile the code it
gens? I suspect that sin't going to work on that code because of all the
Attributes requirement to the COM interop stuff work.
+++ Rick ---

Signature
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
> > Does anybody know of a tool of some sort that can generate a C# interface
> > from a COM interface? I need to pull a ton of interfaces out of an
[quoted text clipped - 14 lines]
>
> Joe
Joe Mayo [C# MVP] - 26 Apr 2004 05:42 GMT
> Hi Joe,
>
[quoted text clipped - 3 lines]
> gens? I suspect that sin't going to work on that code because of all the
> Attributes requirement to the COM interop stuff work.
That's a thought. I haven't used the Anakrino decompiler, but have seen
some people recommend it:
http://www.saurik.com/
Joe

Signature
http://www.csharp-station.com
Roland - 06 May 2004 02:20 GMT
Anakrino isnt really useful for getting C# for COM interfaces. The
FileDisassembler add-in at http://www.denisbauer.com/NETTools/ does a really
good job on this as I just found out :-)
> > Hi Joe,
> >
[quoted text clipped - 10 lines]
>
> Joe
Mattias Sj?gren - 26 Apr 2004 09:57 GMT
Rick,
Aurigma had a tool that generated source code instead of compiled
assemblies (at http://www.aurigma.com/Products/COMtoNET/) that used to
be available in public beta, but it doesn't appear to be anymore.
You can't use Reflection to build your own interop assembly
decompiler, because Reflection doesn't return interop related metadata
(at least not in pre-Whidbey versions).
I've been working on a decompiler that uses the unmanaged metadata
APIs instead. It's not finished, but it may be good enough if you're
interested.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.