COM Object Name

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?
 
M

Mattias Sjögren

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
 
D

Dave Sexton

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.
 
P

Patrick Steele

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

Top