<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DLL for my custom classes in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9835647#M3986</link>
    <description>&lt;P&gt;Thanks Thomas for pointing me to the right directions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 19:20:54 GMT</pubDate>
    <dc:creator>parikhnidi</dc:creator>
    <dc:date>2020-10-30T19:20:54Z</dc:date>
    <item>
      <title>DLL for my custom classes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9833109#M3982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have built library of classes for the objects I encounter every day. What I want is to build a .dll file that can be referred to in my project without having to include class module files any more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it can be accomplished, then what version of Visual Studio I need. I am using AutoCAD 2021.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 19:26:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9833109#M3982</guid>
      <dc:creator>parikhnidi</dc:creator>
      <dc:date>2020-10-29T19:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: DLL for my custom classes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9834292#M3983</link>
      <description>&lt;P&gt;If you're trying to create an AutoCAD add-in, I would start by looking at this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/simplecontent/content/my-first-autocad-plug-overview.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad/learn-explore/caas/simplecontent/content/my-first-autocad-plug-overview.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9834292#M3983</guid>
      <dc:creator>ThomasRambach</dc:creator>
      <dc:date>2020-10-30T09:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: DLL for my custom classes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9834913#M3984</link>
      <description>&lt;P&gt;Since you are posting in AutoCAD VBA forum, so I assume the classes you mentioned are the class modules in a DVB project (or multiple DVB projects), and your intention is to re-use them as shared object classes in your other DVB projects. Yes, that is a good practice of programming to share/re-use classes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since it is VBA code, there is no way to wrap the class code into a DLL file. You have following options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Place all the classes you intend to be shared/re-used for your Acad VBA development in a single DVB project. Then when working with other VBA project, you simply add reference to this project via menu "Tools...-&amp;gt;References...". That is, you do not have to compile the class code into DLL file. Drawback of this approach: the DVB file can only be shared by AutoCAD VBA, not other VBA, such as Excel VBA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If you still have access to Classical VB (VB5/6), you can write the class code&amp;nbsp; there and compile them into COM DLL, so that it can be share by all COM environment (Acad VBA. Excel VBA...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. If you do not have access to VB5/6, you can use VB.NET/C# (on MS .NET Framework) to create DLL for the classes, and then expose the DLL as COM DLL. This certainly makes things a bit complicated. If you have to do it with MS .NET Framework, why not directly go to AutoCAD .NET API, which is much more powerful than VBA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IMO, if you are seriously developing AutoCAD custom apps, VBA (64-bit) is critically short of support and not worth putting considerable effort for business mission critical development. So, either you share the classes with DVB file and stick with Acad VBA only for now; or you move on the AutoCAD .NET API programming.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 13:33:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9834913#M3984</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2020-10-30T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: DLL for my custom classes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9835646#M3985</link>
      <description>&lt;P&gt;Thanks Norman for your suggestions. I will definitely look into this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 19:19:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9835646#M3985</guid>
      <dc:creator>parikhnidi</dc:creator>
      <dc:date>2020-10-30T19:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: DLL for my custom classes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9835647#M3986</link>
      <description>&lt;P&gt;Thanks Thomas for pointing me to the right directions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 19:20:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dll-for-my-custom-classes/m-p/9835647#M3986</guid>
      <dc:creator>parikhnidi</dc:creator>
      <dc:date>2020-10-30T19:20:54Z</dc:date>
    </item>
  </channel>
</rss>

