Re: IDL to C#?
From: Leon_Amirreza (r_rahmaty_at_hotmail.com)
Date: 07/16/04
- Next message: Bob Powell [MVP]: "Re: Documenting Your Own .Net Assemblies"
- Previous message: Nikhil Patel: "Array question"
- In reply to: Mattias Sjögren: "Re: IDL to C#?"
- Next in thread: Mattias Sjögren: "Re: IDL to C#?"
- Reply: Mattias Sjögren: "Re: IDL to C#?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Jul 2004 19:58:11 +0430
i added the library {} and command line switches documented in msdn to
generate tbl ; but many attributes used in the oleidl.idl cant be parsed be
midl.exe .
i faced many error messages i dont know was it because i used midl in the
wrong way or what?
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:uj#neZxaEHA.752@TK2MSFTNGP09.phx.gbl...
>
> >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.
- Next message: Bob Powell [MVP]: "Re: Documenting Your Own .Net Assemblies"
- Previous message: Nikhil Patel: "Array question"
- In reply to: Mattias Sjögren: "Re: IDL to C#?"
- Next in thread: Mattias Sjögren: "Re: IDL to C#?"
- Reply: Mattias Sjögren: "Re: IDL to C#?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|