.NET class as COM class

C

Christian Havel

Hi,

I defined a interface like following:

[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IMyInterface
{
[DispId(30001)]
string FirstProperty{ get; set; }
[DispId(30002)]
string SecondProperty { get; set; }
}
I create the tlb and put the assembly in the gac. Well, the second property
was added after I already registered the tlb. If I add a reference to the tlb
in the VBA editor, the interface appears only with the first property.
What is the standard to register a changed .NET / COM component?
Christian
 
C

Christian Havel

Thank you Peter. I already found my mistake.
Christian


Peter Bromberg said:
You've changed the typelibrary so you need to re-register it to get the
changes.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net


Christian Havel said:
Hi,

I defined a interface like following:

[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IMyInterface
{
[DispId(30001)]
string FirstProperty{ get; set; }
[DispId(30002)]
string SecondProperty { get; set; }
}
I create the tlb and put the assembly in the gac. Well, the second property
was added after I already registered the tlb. If I add a reference to the tlb
in the VBA editor, the interface appears only with the first property.
What is the standard to register a changed .NET / COM component?
Christian
 
P

Peter Duniho

Thank you Peter. I already found my mistake.

And? What was that mistake?

As I only just recently mentioned to someone else, it is customary and
polite to post the answer even if you figured it out on your own. That
way others can benefit from your experience.

Pete
 

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