<?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: Loading DLL from AddOn fails for ArchiCAD27 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Loading-DLL-from-AddOn-fails-for-ArchiCAD27/m-p/578787#M8955</link>
    <description>&lt;P&gt;I found my mistake: It is my own DLL and it includes some ArchiCAD API functions. I compiled and linked it against the ArchiCAD 26 API and tried to load the DLL with ArchiCAD 27.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 08:31:03 GMT</pubDate>
    <dc:creator>Martin Walter</dc:creator>
    <dc:date>2023-12-04T08:31:03Z</dc:date>
    <item>
      <title>Loading DLL from AddOn fails for ArchiCAD27</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Loading-DLL-from-AddOn-fails-for-ArchiCAD27/m-p/578370#M8944</link>
      <description>&lt;P&gt;I have working code for an ArchiCAD-Addon for Versions 22-26. Now I try to run it with ArchiCAD 27 but it fails in the following line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;m_hModule = ::LoadLibrary(wstrDLLPath);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LoadLibrary() returns 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I investigated, that&amp;nbsp;::GetLastError(); returns 127, that means a Procedure is not found.&lt;/P&gt;
&lt;P&gt;This does not make much sense in the ::LoadLibrary function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe it is the&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function that is missing in my DLL. Or did I miss something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 10:45:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Loading-DLL-from-AddOn-fails-for-ArchiCAD27/m-p/578370#M8944</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2024-09-17T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loading DLL from AddOn fails for ArchiCAD27</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Loading-DLL-from-AddOn-fails-for-ArchiCAD27/m-p/578733#M8953</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Couple of questions:&lt;BR /&gt;Is this your own DLL?&lt;BR /&gt;Is it on a path accessible by Archicad?&lt;BR /&gt;Can you load it if you place the DLL beside Archicad 27?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Akos&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 20:07:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Loading-DLL-from-AddOn-fails-for-ArchiCAD27/m-p/578733#M8953</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2023-12-03T20:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loading DLL from AddOn fails for ArchiCAD27</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Loading-DLL-from-AddOn-fails-for-ArchiCAD27/m-p/578787#M8955</link>
      <description>&lt;P&gt;I found my mistake: It is my own DLL and it includes some ArchiCAD API functions. I compiled and linked it against the ArchiCAD 26 API and tried to load the DLL with ArchiCAD 27.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 08:31:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Loading-DLL-from-AddOn-fails-for-ArchiCAD27/m-p/578787#M8955</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2023-12-04T08:31:03Z</dc:date>
    </item>
  </channel>
</rss>

