<?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: Running a dll From Another dll in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529571#M5708</link>
    <description>&lt;P&gt;You could just make a CommandMethod in the first DLL so that the user can run a custom command to launch the application directly from within AutoCAD. Does it really need to be a standalone executable or can they launch from within AutoCAD?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 16:17:07 GMT</pubDate>
    <dc:creator>ThomasRambach</dc:creator>
    <dc:date>2024-01-30T16:17:07Z</dc:date>
    <item>
      <title>Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529454#M5705</link>
      <description>&lt;P&gt;I have a program that currently uses a &lt;STRONG&gt;sub&lt;/STRONG&gt; to create part of a specific drawing.&lt;/P&gt;&lt;P&gt;I have a request to make a standalone program from that sub so users can run just that part of the program.&lt;/P&gt;&lt;P&gt;What is the best way to do this?&lt;/P&gt;&lt;P&gt;I would like the designer to have the ability to just run the standalone, but the original program should be able to run it as well.&lt;/P&gt;&lt;P&gt;I don't want to have it in two places as I don't want to have to update code in two different locations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:45:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529454#M5705</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2024-01-30T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529469#M5706</link>
      <description>&lt;P&gt;You should decouple your sub from the program that contained in and place in a separate assembly/project. Then you can reference it from the program that you removed it from as well as any other program that you write and want to use it with.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:51:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529469#M5706</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-01-30T15:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529478#M5707</link>
      <description>&lt;P&gt;Hi, yes I was hoping for a method to use.&amp;nbsp; I'm sorry I should have been more specific.&lt;/P&gt;&lt;P&gt;What would the command(s) be for program 1 to run program 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After thinking about it, could that "sub" code exist in a library so that other programs could access and use it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:08:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529478#M5707</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2024-01-30T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529571#M5708</link>
      <description>&lt;P&gt;You could just make a CommandMethod in the first DLL so that the user can run a custom command to launch the application directly from within AutoCAD. Does it really need to be a standalone executable or can they launch from within AutoCAD?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:17:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529571#M5708</guid>
      <dc:creator>ThomasRambach</dc:creator>
      <dc:date>2024-01-30T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529627#M5709</link>
      <description>&lt;P&gt;Hi, I was hoping to have a sub of some kind in a library.&amp;nbsp; This sub will be passed some items.&lt;/P&gt;&lt;P&gt;I want multiple programs to have access to this one sub located in a library.&lt;/P&gt;&lt;P&gt;I have been looking for:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; How to create that loibrary part (is it a dll, or ?)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; How does a program call that particular function from the library part?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:23:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529627#M5709</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2024-01-30T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529679#M5710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;From a standalone application (EXE) you cannot use the .NET API (you're stuck to the COM API).&lt;/P&gt;
&lt;P&gt;IMHO, the simplest way would be defining a command (with CommandMethod attribute) from your 'sub' in the 'library' (DLL) so that you can netload this 'library' from the standalone application by invoking the NETLOAD command and launch your command.&lt;/P&gt;
&lt;P&gt;You can see &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-C8C65D7A-EC3A-42D8-BF02-4B13C2EA1A4B" target="_blank" rel="noopener"&gt;this example&lt;/A&gt; in the docs.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529679#M5710</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-01-30T16:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529718#M5711</link>
      <description>&lt;P&gt;Hi, after reading the replies, I have been thinking that the "standalone" option would not be the best approach.&lt;/P&gt;&lt;P&gt;I am now thinking that I need to create a "library" that would contain a number of "subs" that I use frequently in many of my applications.&amp;nbsp; Would that library be a .dll?&amp;nbsp; If so, could I attach it as a reference to multiple programs so they could just call those functions normally and pass them the appropriate items?&lt;/P&gt;&lt;P&gt;Would I be able to do that by attaching the "library.dll" using References, like I would the AcDbMgd.dll?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:53:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529718#M5711</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2024-01-30T16:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529730#M5712</link>
      <description>&lt;P&gt;The library have to be a DLL.&lt;/P&gt;
&lt;P&gt;You simply add it as reference to your projects setting the "copy locale" to true. The library have to be in the same folder as your project assemby. If you deploy your application, you have to join the library in the same folder.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:59:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12529730#M5712</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-01-30T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12530401#M5713</link>
      <description>&lt;P&gt;Hi Gilles, I'm going to try that.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 21:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12530401#M5713</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2024-01-30T21:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12530446#M5714</link>
      <description>&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;I've created a project "UtilitiesLibrary.dll" and in it I have some subs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new project, and in the references I added&amp;nbsp;"UtilitiesLibrary.dll".&lt;/P&gt;&lt;P&gt;I made a call to one of the subs in the library, but it tells me that its not declared and may be inaccessable due to its protection level.&lt;/P&gt;&lt;P&gt;How do I get it to see the functions/subs in the library?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 22:16:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12530446#M5714</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2024-01-30T22:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running a dll From Another dll</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12530994#M5715</link>
      <description>&lt;P&gt;To be accessible, the classes and members of the library have to be 'public'.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 06:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-a-dll-from-another-dll/m-p/12530994#M5715</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-01-31T06:43:17Z</dc:date>
    </item>
  </channel>
</rss>

