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 / February 2006

Tip: Looking for answers? Try searching our database.

Registering VB2005 Class Library For COM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan Wareham - 21 Feb 2006 23:46 GMT
Hi,

I am new to VS2005 having moved straight from VB6.  I need to create a
VB2005 class library that is exposed to COM but am not having much luck.  I
have set 'Make assembly COM-Visible' in the Application->Assembly
Information properties, and set 'COM Class' = True and 'COM Visible' = True
on the class attributes but each time I build the solution it just seems to
build it as a normal .NET assembly with nothing visible in COM.

I'm sure I'm missing something simple - can anybody point me in the right
direction?

Thanks,

Jonathan
Tim Anderson - 26 Feb 2006 21:02 GMT
> I'm sure I'm missing something simple - can anybody point me in the right
> direction?

Did you set Register for COM interop in the Compile section of project
properties?

You must either do this, or use the regasm tool to register the assembly for
COM.

Tim
Pitfalls when handling COM events in managed code

http://www.itwriting.com/blog/?postid=349

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.