Is there any tool that can convert and Interface definitions (especially
oleidl.idl) to C# interface definitions?
does MIDL.exe do that? i could just get c++ header files.
MIDL and TlbImp is the way to go. But for MIDL to produce a typelib I
belive you need a library {} block in the IDL file, which is missing
in Oleidl.idl.
But for non automation interfaces like those in Oleidl.idl, the IA
produced by Tlbimp isn't always perfect, and you may have to modify it
to make it really usable. So it's often easier to write your own COM
interface declarations directly in C# instead. You can find examples
of that in the .NET SDK directory
Samples\Technologies\Interop\Applications\ShellCmd
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.