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 / .NET Framework / Interop / May 2006

Tip: Looking for answers? Try searching our database.

Difference between "Make Assembly COM-Visible" and "Register for COM Interop"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Geretz - 29 May 2006 18:15 GMT
I'm developing a .NET class library. I want this to be callable by VB6 (COM
/ ActiveX) clients. In Project Properties, under Application | Assembly
Information, I see an option titled "Make Assembly COM-Visible". How does
this differ from "Register for COM Interop" in the Output section of the
Build tab?

Thanks for your advice!

- Joe Geretz -
Phil Wilson - 31 May 2006 01:12 GMT
I think Make Assembly COM Visible will create ComVisible line in the
AssemblyInfo file. Register for COM Interop will actually run Regasm after
every build to register the types with COM (which you probably shouldn't do
until you're stable because your COM Guids will change whenever you change
the methods unless you specify Guids explicitly, so your registry could end
up with a lot of registration junk for versions that will never be used).
Signature

Phil Wilson [MVP Windows Installer]
----

> I'm developing a .NET class library. I want this to be callable by VB6
> (COM / ActiveX) clients. In Project Properties, under Application |
[quoted text clipped - 5 lines]
>
> - Joe Geretz -
Gaurav Vaish (www.EduJini.IN) - 31 May 2006 03:27 GMT
> every build to register the types with COM (which you probably shouldn't
> do until you're stable because your COM Guids will change whenever you
> change the methods unless you specify Guids explicitly, so your registry
> could end up with a lot of registration junk for versions that will never
> be used).

That's true.
To just let you my first experience with COM-Interops, I ended up having 14
junk GUIDs in CLSID. I had to manually clean the registry. Well, I got away
without destablizing the OS. :))

Signature

Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------


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.