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
Peter Bromberg [C# MVP] - 17 Mar 2008 16:37 GMT
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
> Hi,
>
[quoted text clipped - 14 lines]
> What is the standard to register a changed .NET / COM component?
> Christian
Christian Havel - 17 Mar 2008 17:33 GMT
Thank you Peter. I already found my mistake.
Christian
> You've changed the typelibrary so you need to re-register it to get the
> changes.
[quoted text clipped - 21 lines]
> > What is the standard to register a changed .NET / COM component?
> > Christian
Peter Duniho - 17 Mar 2008 18:40 GMT
> 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