Francis,
When you let .NET create the CLSID, it will create a new one every time
you build the application. This can get quite messy, and locating the
registry entries (if you have to) can be a pain.
You will need to create one for every class that you plan on exporting
to COM, as well as every interface you want to export to COM.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Francis Gingras" <pr*****@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
And what is the advantage of declaring a CLSID vs. letting the VS create
one?
Do we need a different CLSID for every class, or only one for the dll?
Francis
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:eO**************@tk2msftngp13.phx.gbl... Dave,
You should actually be using BOTH of these attributes, as they both
do different things. The Guid attribute on the class is going to declare
what the CLSID of the COM component will be. The ClassInterface attribute
will indicate that the class will not export an interface of its own. They
should both be on there.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com