Bogey,
You could use the MIDL compiler and compile the IDL file into a type
library, and then use TLBIMP to import the definition. However, I think
doing it by hand is a better idea. These definitions look pretty simple, so
I would recommend creating them by hand as well.
You might want to check out the section of the MSDN documentation titled
"Exposing COM Components to the .NET Framework ", located at:
http://msdn2.microsoft.com/en-us/library/z6tx9dw3(VS.80).aspx
To help you with creating the definitions of the interfaces in code.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"Bogey" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am trying to implement the interfaces (well, actually create the COM
> Interop interface definitions first), but am unsure how to create the
> interface.cs files needed.
>
> The interfaces in particular I need right now are IE7 interfaces
> IInternetSecurityManagerEx and IInternetSecurityManagerEx2.
>
> I found that IInternetSecurityManagerEx is defined in the IDL file for
> UrlMon.IDL - so is there an automated mechanism for creating the many
> CS assembly files for a particular interface?
>
> IInternetSecurityManagerEx2 seems to only be defined on MSDN and I
> can't find the C# code for the interface definition...
>