﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » COM callable assembly in Visual Basic .NET</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 02 May 2026 02:41:56 GMT</lastBuildDate><ttl>20</ttl><item><title>COM callable assembly in Visual Basic .NET</title><link>http://forum.strataframe.net/FindPost5367.aspx</link><description>I created a StrataFrame Business Object Library which includes 4 or 5 business objects. I need to be able to call this DLL from VB6. I clicked on 'Make Assembly COM-Visible' in the project properties.&lt;/P&gt;&lt;P&gt;I'm not clear on what I have to do next. Do I need to register the DLL if I don't plan to copy to the GAC to be able to use it with VB6?&amp;nbsp; I was able to reference the DLL and access no problem within the VB6 development environment but someone told me I needed to 'sign' the assembly with a 'strong name.&amp;nbsp; (If so, can you provide some guidance on how to do this).&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Sun, 17 Dec 2006 16:00:03 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: COM callable assembly in Visual Basic .NET</title><link>http://forum.strataframe.net/FindPost5368.aspx</link><description>[quote] to 'sign' the assembly with a 'strong name.&amp;nbsp;[/quote]&lt;/P&gt;&lt;P&gt;You only need to do this if you are going to place the assembly in the GAC.&amp;nbsp; I do not recommend doing this if you are going to make the DLL COM-Enabled.&amp;nbsp; To make your assembly properly accessible via VB6, you may need to create a TLB and update the registry.&amp;nbsp; You cannot self register a .NET DLL like you could in previous languages.&amp;nbsp; You will need to call the REGASM tool from the Visual Studio 2005 Command Prompt.&amp;nbsp; This will create your TLB and register the assembly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the installation you can manually add the keys to the registry to make the COM visible on the workstation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REGASM&lt;BR&gt;&lt;/STRONG&gt;&lt;BR&gt;[codesnippet]regasm "c:\My Assembly Folder\MyAssembly.dll" /tlb:"c:\My Output Folder\MyAssembly.tlb"[/codesnippet]&lt;/P&gt;&lt;P&gt;FYI, to sign your assembly for strong-typing so it can be added to the GAC, just right-click on the project and go to the project properties.&amp;nbsp; Select the Signing tab.&amp;nbsp; Place a check mar in the "Sign the assembly" check box and create a new pfx file.&amp;nbsp; Rebuild the assembly and you will then be able to add it to the GAC.</description><pubDate>Sun, 17 Dec 2006 16:00:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>