Ben Voigt [C++ MVP]
6/15/2007 7:21:00 PM
Via the UUID, same as always.
"herc" <cartoper@gmail.com> wrote in message
news:1181914254.786581.42480@u2g2000hsc.googlegroups.com...
On Jun 14, 5:02 pm, Mattias Sjögren <mattias.dont.want.s...@mvps.org>
wrote:
> >I have a .Net 1.1 assembly that is being exposed/packaged as a COM
> >object. Interally there is a class "Dog" that to the outside world I
> >want them to see "Cat". Back in the world of unmanaged C++ this is
> >easy to do, simply change the name in the idl file from Dog to Cat and
> >change any references to CLSID_Dog to CLSID_Cat. Is there any way to
> >do this in C#?
>
> You can still create your typelib from an IDL file and customize it in
> any way you want. You don't have to use the typelib that
> VS/Tlbexp/Regasm creates for you.
Mattias,
I am doing that with my interfaces, how do I tie coclass in the IDL to
a C# class?