Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

.NET class as COM class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christian Havel - 17 Mar 2008 16:09 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.