COM Object Name

  • Thread starter Thread starter dabramov
  • Start date Start date
D

dabramov

Does anyone how to set the name of the COM object in VS2005 for a C#
project that creates a COM object. I can't figure out what windows
uses as the name when you bring up the "References" window in Excel,
for example. My COM Object's name seems to be the project name. How do
I change that?
 
Does anyone how to set the name of the COM object in VS2005 for a C#
project that creates a COM object. I can't figure out what windows
uses as the name when you bring up the "References" window in Excel,
for example. My COM Object's name seems to be the project name. How do
I change that?

Most COM References windows lists registered type libraries. You can
set the typelib description with the AssemblyDescriptionAttribute.


Mattias
 
Hi,

I believe you need to specify the ProgIdAttribute attribute on your class.
Without it the namespace and type name are used and, normally, the namespace
is the name of the project.
 
Does anyone how to set the name of the COM object in VS2005 for a C#
project that creates a COM object. I can't figure out what windows
uses as the name when you bring up the "References" window in Excel,
for example. My COM Object's name seems to be the project name. How do
I change that?

Try the ProgIdAttribute.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top